Skip to content

Commit

Permalink
fix(installer): add registry auth pod affinity (#2121)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@localhost.localdomain>
  • Loading branch information
Lis and root committed Oct 17, 2022
1 parent c254119 commit a13d1dc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@ spec:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- tke-auth-api
topologyKey: kubernetes.io/hostname
weight: 1
containers:
- name: tke-auth-api
image: {{ .Values.api.image }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ spec:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- tke-registry-api
topologyKey: kubernetes.io/hostname
weight: 1
containers:
- name: tke-registry-api
image: {{ .Values.api.image }}
Expand Down

0 comments on commit a13d1dc

Please sign in to comment.