Skip to content

Commit

Permalink
sample: add antiaffinity to default sample yaml. radondb#371
Browse files Browse the repository at this point in the history
  • Loading branch information
runkecheng committed Feb 28, 2022
1 parent d1674de commit 2e5d512
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion config/samples/mysql_v1alpha1_mysqlcluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,16 @@ spec:

labels: {}
annotations: {}
affinity: {}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: mysql.radondb.com/cluster
operator: In
values:
- sample
topologyKey: "kubernetes.io/hostname"
priorityClassName: ""
tolerations: []
schedulerName: ""
Expand Down

0 comments on commit 2e5d512

Please sign in to comment.