Allow to run filebeat pods as privileged (#8889)

Signed-off-by: Mickaël Canévet <mickael.canevet@camptocamp.com>
This commit is contained in:
Mickaël Canévet
2019-04-01 05:16:33 -07:00
committed by Kubernetes Prow Robot
parent 59199487e6
commit 5a8b3e02e1
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: A Helm chart to collect Kubernetes logs with filebeat
icon: https://www.elastic.co/assets/blt47799dcdcf08438d/logo-elastic-beats-lt.svg
name: filebeat
version: 1.5.0
version: 1.5.1
appVersion: 6.7.0
home: https://www.elastic.co/products/beats/filebeat
sources:
+1
View File
@@ -59,6 +59,7 @@ The following table lists the configurable parameters of the filebeat chart and
| `serviceAccount.name` | the name of the ServiceAccount to use | `""` |
| `podSecurityPolicy.enabled` | Should the PodSecurityPolicy be created. Depends on `rbac.create` being set to `true`. | `false` |
| `podSecurityPolicy.annotations` | Annotations to be added to the created PodSecurityPolicy: | `""` |
| `privileged` | Specifies wheter to run as privileged | `false` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
+3
View File
@@ -89,6 +89,9 @@ spec:
{{- end }}
securityContext:
runAsUser: 0
{{- if .Values.privileged }}
privileged: true
{{- end }}
{{- if .Values.resources }}
resources:
{{ toYaml .Values.resources | indent 10 }}
+2
View File
@@ -140,6 +140,8 @@ podSecurityPolicy:
# seccomp.security.alpha.kubernetes.io/defaultProfileName: 'docker/default'
# apparmor.security.beta.kubernetes.io/defaultProfileName: 'runtime/default'
privileged: false
## Add Elastic beat-exporter for Prometheus
## https://github.com/trustpilot/beat-exporter
## Dont forget to enable http on config.http.enabled (exposing filebeat stats)