Skip to content

Commit

Permalink
Add security context config to logstash chart (helm#11498)
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Head <[email protected]>
  • Loading branch information
betatim authored and k8s-ci-robot committed Feb 27, 2019
1 parent 20bfe4e commit a1ba464
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/logstash/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Logstash is an open source, server-side data processing pipeline
icon: https://www.elastic.co/assets/blt86e4472872eed314/logo-elastic-logstash-lt.svg
home: https://www.elastic.co/products/logstash
name: logstash
version: 1.5.0
version: 1.5.1
appVersion: 6.6.0
sources:
- https://www.docker.elastic.co
Expand Down
2 changes: 2 additions & 0 deletions stable/logstash/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,5 @@ The following table lists the configurable parameters of the chart and its defau
| `inputs` | Logstash inputs configuration | beats |
| `filters` | Logstash filters configuration | `nil` |
| `outputs` | Logstash outputs configuration | elasticsearch |
| `securityContext.fsGroup` | Group ID for the container | `1000` |
| `securityContext.runAsUser` | User ID for the container | `1000` |
4 changes: 2 additions & 2 deletions stable/logstash/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
securityContext:
runAsUser: 1000
fsGroup: 1000
runAsUser: {{ .Values.securityContext.runAsUser }}
fsGroup: {{ .Values.securityContext.fsGroup }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.pullSecrets | indent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions stable/logstash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ nodeSelector: {}

tolerations: []

securityContext:
fsGroup: 1000
runAsUser: 1000

affinity: {}
# podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
Expand Down

0 comments on commit a1ba464

Please sign in to comment.