forked from k-space/kube
		
	bind: Use topology spread constraint instead of anti affinity rules
This commit is contained in:
		| @@ -76,16 +76,13 @@ spec: | |||||||
|                   name: bind-readonly-secret |                   name: bind-readonly-secret | ||||||
|         - name: bind-data |         - name: bind-data | ||||||
|           emptyDir: {} |           emptyDir: {} | ||||||
|       affinity: |       topologySpreadConstraints: | ||||||
|         podAntiAffinity: |         - maxSkew: 1 | ||||||
|           requiredDuringSchedulingIgnoredDuringExecution: |           topologyKey: topology.kubernetes.io/zone | ||||||
|             - labelSelector: |           whenUnsatisfiable: DoNotSchedule | ||||||
|                 matchExpressions: |           labelSelector: | ||||||
|                   - key: app |             matchLabels: | ||||||
|                     operator: In |               app: bind-secondary | ||||||
|                     values: |  | ||||||
|                       - bind-secondary |  | ||||||
|               topologyKey: "kubernetes.io/hostname" |  | ||||||
| --- | --- | ||||||
| apiVersion: v1 | apiVersion: v1 | ||||||
| kind: Service | kind: Service | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user