mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
add filesystem group change policy for large minio deployments (#14528)
* add group change policy for large MinIO deployments * Added Kubernetes version > 1.20 check for applying the proposed change
This commit is contained in:
parent
80039f60d5
commit
47d4fabb58
@ -60,6 +60,9 @@ spec:
|
|||||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||||
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
||||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||||
|
{{- if and (ge .Capabilities.KubeVersion.Major "1") (ge .Capabilities.KubeVersion.Minor 20) }}
|
||||||
|
fsGroupChangePolicy: {{ .Values.securityContext.fsGroupChangePolicy }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ if .Values.serviceAccount.create }}
|
{{ if .Values.serviceAccount.create }}
|
||||||
serviceAccountName: {{ .Values.serviceAccount.name }}
|
serviceAccountName: {{ .Values.serviceAccount.name }}
|
||||||
|
@ -87,6 +87,9 @@ spec:
|
|||||||
runAsUser: {{ .Values.securityContext.runAsUser }}
|
runAsUser: {{ .Values.securityContext.runAsUser }}
|
||||||
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
runAsGroup: {{ .Values.securityContext.runAsGroup }}
|
||||||
fsGroup: {{ .Values.securityContext.fsGroup }}
|
fsGroup: {{ .Values.securityContext.fsGroup }}
|
||||||
|
{{- if and (ge .Capabilities.KubeVersion.Major "1") (ge .Capabilities.KubeVersion.Minor 20) }}
|
||||||
|
fsGroupChangePolicy: {{ .Values.securityContext.fsGroupChangePolicy }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ if .Values.serviceAccount.create }}
|
{{ if .Values.serviceAccount.create }}
|
||||||
serviceAccountName: {{ .Values.serviceAccount.name }}
|
serviceAccountName: {{ .Values.serviceAccount.name }}
|
||||||
|
@ -237,6 +237,7 @@ securityContext:
|
|||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
|
|
||||||
# Additational pod annotations
|
# Additational pod annotations
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user