File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 18
18
labels :
19
19
{{- include "marklogic.selectorLabels" . | nindent 8 }}
20
20
spec :
21
+ {{- if .Values.podSecurityContext.enabled }}
22
+ securityContext : {{- omit .Values.podSecurityContext "enabled" | toYaml | nindent 8 }}
23
+ {{- end }}
21
24
serviceAccountName : {{ include "marklogic.serviceAccountName" . }}
22
25
{{- with .Values.affinity }}
23
26
affinity : {{- toYaml . | nindent 8}}
Original file line number Diff line number Diff line change @@ -205,7 +205,20 @@ networkPolicy:
205
205
endPort : 8020
206
206
protocol : TCP
207
207
208
- # # Below are the security configurations for container, by default security will be enabled
208
+ # # Below are the security configuration at POD level, by default security will be enabled
209
+ # # https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#configure-volume-permission-and-ownership-change-policy-for-pods
210
+ # ######################################################################################
211
+ # # NOTE : The POD Security context should be set when using additional volume. ##
212
+ # # This will ensure that additional volume created is set with the right ownership. ##
213
+ # ######################################################################################
214
+
215
+ podSecurityContext :
216
+ enabled : true
217
+ # # group id of user owning the MarkLogic service
218
+ fsGroup : 2
219
+ fsGroupChangePolicy : " OnRootMismatch"
220
+
221
+ # # Below are the security configurations for markLogic container, by default security will be enabled
209
222
containerSecurityContext :
210
223
enabled : true
211
224
runAsUser : 1000
You can’t perform that action at this time.
0 commit comments