Skip to content

Commit

Permalink
Merge pull request #497 from zhouhaoA1/feature_components_deploy
Browse files Browse the repository at this point in the history
fix virtualcluster apiserver deploy yaml bug
  • Loading branch information
kosmos-robot committed Apr 29, 2024
2 parents 1563d25 + 8698c7c commit 7f7d468
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 7f7d468

Please sign in to comment.