File tree 4 files changed +36
-0
lines changed
kruise-game/0.9/templates
kruise-rollout/0.5/templates
kruise-state-metrics/0.2/templates
4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 98
98
volumeMounts :
99
99
- mountPath : /etc/kruise-game
100
100
name : provider-config
101
+ topologySpreadConstraints :
102
+ - labelSelector :
103
+ matchLabels :
104
+ control-plane : {{ .Values.kruiseGame.fullname }}
105
+ matchLabelKeys :
106
+ - pod-template-hash
107
+ maxSkew : 1
108
+ topologyKey : topology.kubernetes.io/zone
109
+ whenUnsatisfiable : ScheduleAnyway
101
110
serviceAccountName : {{ .Values.kruiseGame.fullname }}
102
111
terminationGracePeriodSeconds : 10
103
112
volumes :
Original file line number Diff line number Diff line change 96
96
- {{ .Values.rollout.fullname }}
97
97
topologyKey : kubernetes.io/hostname
98
98
weight : 100
99
+ topologySpreadConstraints :
100
+ - labelSelector :
101
+ matchLabels :
102
+ control-plane : {{ .Values.rollout.fullname }}
103
+ matchLabelKeys :
104
+ - pod-template-hash
105
+ maxSkew : 1
106
+ topologyKey : topology.kubernetes.io/zone
107
+ whenUnsatisfiable : ScheduleAnyway
99
108
{{- with .Values.tolerations }}
100
109
tolerations :
101
110
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change 57
57
port : 8081
58
58
resources :
59
59
{{- toYaml .Values.resources | nindent 12 }}
60
+ topologySpreadConstraints :
61
+ - labelSelector :
62
+ matchLabels :
63
+ {{- include "kruise-state-metrics.selectorLabels" . | nindent 12 }}
64
+ matchLabelKeys :
65
+ - pod-template-hash
66
+ maxSkew : 1
67
+ topologyKey : topology.kubernetes.io/zone
68
+ whenUnsatisfiable : ScheduleAnyway
60
69
{{- with .Values.nodeSelector }}
61
70
nodeSelector :
62
71
{{- toYaml . | nindent 8 }}
Original file line number Diff line number Diff line change @@ -124,6 +124,15 @@ spec:
124
124
- controller-manager
125
125
topologyKey : kubernetes.io/hostname
126
126
weight : 100
127
+ topologySpreadConstraints :
128
+ - labelSelector :
129
+ matchLabels :
130
+ control-plane : controller-manager
131
+ matchLabelKeys :
132
+ - pod-template-hash
133
+ maxSkew : 1
134
+ topologyKey : topology.kubernetes.io/zone
135
+ whenUnsatisfiable : ScheduleAnyway
127
136
{{- with .Values.manager.nodeAffinity }}
128
137
nodeAffinity :
129
138
{{ toYaml . | indent 10 }}
You can’t perform that action at this time.
0 commit comments