Merge pull request #2 from GreedHub/patch-2
Added skew topology spread constraints to deployment.yaml
This commit is contained in:
		
						commit
						ec22d1975a
					
				|  | @ -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 }} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue