Skip to content

Commit 63a0e0e

Browse files
authored
chore(charts): config securityContext (#19)
1 parent 246389e commit 63a0e0e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

charts/database/templates/database-statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
podAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAffinityPreset.type "component" "" "extraMatchLabels" .Values.podAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2828
podAntiAffinity: {{- include "common.affinities.pods" (dict "type" .Values.podAntiAffinityPreset.type "component" "" "extraMatchLabels" .Values.podAntiAffinityPreset.extraMatchLabels "topologyKey" "" "context" $) | nindent 10 }}
2929
nodeAffinity: {{- include "common.affinities.nodes" (dict "type" .Values.nodeAffinityPreset.type "key" .Values.nodeAffinityPreset.key "values" .Values.nodeAffinityPreset.values ) | nindent 10 }}
30+
securityContext:
31+
fsGroup: 1000
32+
runAsGroup: 1000
33+
runAsUser: 1000
3034
serviceAccountName: drycc-database
3135
containers:
3236
- name: drycc-database

0 commit comments

Comments
 (0)