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) (#1601)
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>

Co-authored-by: Thomas Decaux <ebuildy@gmail.com>
  • Loading branch information
jmlrt and ebuildy authored Mar 7, 2022
1 parent 302ef7d commit 39f8423
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 39f8423

Please sign in to comment.