Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
[elasticsearch] add keystore container securityContext (elastic#1494)
Browse files Browse the repository at this point in the history
fix elastic#1195 , add a securityContext for the initContainer "keystore". The securityContext is the same than the main container.

Co-authored-by: jmlrt <[email protected]>
  • Loading branch information
ebuildy and jmlrt committed Mar 4, 2022
1 parent 302ef7d commit 38327a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elasticsearch/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ spec:
{{- end }}
{{ if .Values.keystore }}
- name: keystore
securityContext:
{{ toYaml .Values.securityContext | indent 10 }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
command:
Expand Down

0 comments on commit 38327a0

Please sign in to comment.