Skip to content

Commit

Permalink
fix virtualcluster apiserver deploy yaml bug
Browse files Browse the repository at this point in the history
Signed-off-by: zhouhaoA1 <[email protected]>
  • Loading branch information
zhouhaoA1 committed Apr 29, 2024
1 parent 1563d25 commit 8698c7c
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ spec:
- key: "node-role.kubernetes.io/control-plane"
operator: "Exists"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: virtualCluster-app
operator: In
values:
- apiserver
topologyKey: kubernetes.io/hostname
containers:
- name: kube-apiserver
image: {{ .ImageRepository }}/kube-apiserver:{{ .Version }}
Expand Down Expand Up @@ -84,24 +102,6 @@ spec:
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 15
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: virtualCluster-app
operator: In
values:
- apiserver
topologyKey: kubernetes.io/hostname
ports:
- containerPort: {{ .ClusterPort }}
name: http
Expand Down

0 comments on commit 8698c7c

Please sign in to comment.