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

Commit

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

Co-authored-by: jmlrt <8582351+jmlrt@users.noreply.github.com>
  • Loading branch information
ebuildy and jmlrt authored Mar 4, 2022
1 parent e085818 commit cf4782c
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 @@ -180,6 +180,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 cf4782c

Please sign in to comment.