|
| 1 | +# Kubernetes / Helm Deployment Template for the CSP violation collector |
| 2 | + |
| 3 | +## TL;DR; |
| 4 | + |
| 5 | +```console |
| 6 | +$ helm upgrade csp-collector kubernetes-helm --values custom-values.yaml --install |
| 7 | +``` |
| 8 | + |
| 9 | +## Introduction |
| 10 | + |
| 11 | +This chart deploys a Content Security Policy violation collector from |
| 12 | +https://github.com/jacobbednarz/go-csp-collector/ |
| 13 | + |
| 14 | +Using the [kubernetes-helm/values.yaml][1] file create a custom-values.yaml override |
| 15 | +with just the changed values then run the command above. |
| 16 | +eg. |
| 17 | +replicaCount: 2 |
| 18 | +custom: |
| 19 | + filterlist: "custom.filter.list" |
| 20 | + |
| 21 | +ingress: |
| 22 | + enabled: true |
| 23 | + annotations: |
| 24 | + kubernetes.io/ingress.class: nginx |
| 25 | + certmanager.k8s.io/cluster-issuer: 'my-key-name' |
| 26 | + certmanager.k8s.io/acme-challenge-type: 'dns01' |
| 27 | + certmanager.k8s.io/acme-dns01-provider: 'route53' |
| 28 | + nginx.ingress.kubernetes.io/force-ssl-redirect: 'true' |
| 29 | + hosts: |
| 30 | + - csp-reports.example.com |
| 31 | + tls: |
| 32 | + - secretName: csp-reports.example.com-tls |
| 33 | + hosts: |
| 34 | + - csp-reports.example.com |
| 35 | +``` |
| 36 | +
|
| 37 | +## Config params |
| 38 | +
|
| 39 | +| Parameter | Description | Default | |
| 40 | +| --------------------------- | :------------------------------- | :----------------------------- | |
| 41 | +| `ingress` | A standard ingress block | | |
| 42 | +| `ingress.enabled` | Enables or Disables the ingress block | `false` | |
| 43 | +| `ingress.annotations` | Ingress annotations | `{}` | |
| 44 | +| `ingress.hosts` | List of FQDN's the be browsed to | Not Set | |
| 45 | +| `ingress.tls.secretName` | Name of the secret to use | Not Set | |
| 46 | +| `ingress.tls.hosts` | List of FQDN's the above secret is associated with| Not Set | |
| 47 | +| `service.type` | Service type | `ClusterIP` | |
| 48 | +| `service.port` | Service port | `80` | |
| 49 | +| `service.annotations` | Service annotations | `{}` | |
| 50 | +| `custom` | CLI Param Options (see Below) | | |
| 51 | +| `custom.debug` | Logs in debug mode | `false` | |
| 52 | +| `custom.filterlist` | Name of file within the configMaps dir for custom filters| `false` Uses list compiled into the app | |
| 53 | +| `custom.jsonOutput` | Log entries as json objects, use `false` for plain text | `true` | |
| 54 | +
|
| 55 | +[1]: https://github.com/jacobbednarz/go-csp-collector/blob/master/deployment/kubernetes-helm/values.yaml |
0 commit comments