File tree 1 file changed +12
-16
lines changed
1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 78
78
labels :
79
79
app : cockroachdb
80
80
annotations :
81
- scheduler.alpha.kubernetes.io/affinity : >
82
- {
83
- "podAntiAffinity": {
84
- "preferredDuringSchedulingIgnoredDuringExecution": [{
85
- "weight": 100,
86
- "labelSelector": {
87
- "matchExpressions": [{
88
- "key": "app",
89
- "operator": "In",
90
- "values": ["cockroachdb"]
91
- }]
92
- },
93
- "topologyKey": "kubernetes.io/hostname"
94
- }]
95
- }
96
- }
97
81
# Init containers are run only once in the lifetime of a pod, before
98
82
# it's started up for the first time. It has to exit successfully
99
83
# before the pod's main containers are allowed to start.
@@ -133,6 +117,18 @@ spec:
133
117
}
134
118
]'
135
119
spec :
120
+ affinity :
121
+ podAntiAffinity :
122
+ preferredDuringSchedulingIgnoredDuringExecution :
123
+ - weight : 100
124
+ podAffinityTerm :
125
+ labelSelector :
126
+ matchExpress :
127
+ - key : app
128
+ operator : In
129
+ values :
130
+ - cockroachdb
131
+ topologyKey : kubernetes.io/hostname
136
132
containers :
137
133
- name : cockroachdb
138
134
# Runs the master branch. Not recommended for production, but since
You can’t perform that action at this time.
0 commit comments