mirror of
https://github.com/minio/minio.git
synced 2025-04-13 07:50:15 -04:00
Allow setting readOnlyRootFilesystem in securityContext (#19437)
This commit is contained in:
parent
787c44c39d
commit
78f177b8ee
@ -191,6 +191,10 @@ spec:
|
|||||||
value: {{ tpl $val $ | quote }}
|
value: {{ tpl $val $ | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources: {{- toYaml .Values.resources | nindent 12 }}
|
resources: {{- toYaml .Values.resources | nindent 12 }}
|
||||||
|
{{- if and .Values.securityContext.enabled .Values.persistence.enabled }}
|
||||||
|
securityContext:
|
||||||
|
readOnlyRootFilesystem: {{ .Values.securityContext.readOnlyRootFilesystem | default false }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.extraContainers }}
|
{{- with .Values.extraContainers }}
|
||||||
{{- if eq (typeOf .) "string" }}
|
{{- if eq (typeOf .) "string" }}
|
||||||
{{- tpl . $ | nindent 8 }}
|
{{- tpl . $ | nindent 8 }}
|
||||||
|
@ -249,6 +249,7 @@ securityContext:
|
|||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
|
||||||
# Additational pod annotations
|
# Additational pod annotations
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user