Merge pull request #2 from GreedHub/patch-2

Added skew topology spread constraints to deployment.yaml
This commit is contained in:
GreedHub 2023-07-16 14:31:33 -03:00 committed by GitHub
commit ec22d1975a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ spec:
labels:
{{- include "nfs-subdir-external-provisioner.podLabels" . | nindent 8 }}
spec:
{{- if .Values.skew }}
topologySpreadConstraints:
- maxSkew: {{ .Values.skew.maxSkew }}
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: {{ .Values.skew.whenUnsatisfiable }}
labelSelector:
matchLabels:
app: {{ template "nfs-subdir-external-provisioner.fullname" . }}
{{- end }}
serviceAccountName: {{ template "nfs-subdir-external-provisioner.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}