Skip to content

Commit 9f892f6

Browse files
committed
Prefer control plane nodes for typha
1 parent 5605fb5 commit 9f892f6

File tree

37 files changed

+444
-0
lines changed

37 files changed

+444
-0
lines changed

templates/addons/cluster-api-helm/calico-dual-stack.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ spec:
3131
encapsulation: None
3232
natOutgoing: Enabled
3333
nodeSelector: all()
34+
typhaDeployment:
35+
spec:
36+
template:
37+
spec:
38+
affinity:
39+
nodeAffinity:
40+
preferredDuringSchedulingIgnoredDuringExecution:
41+
- weight: 50
42+
preference:
43+
matchExpressions:
44+
- key: node-role.kubernetes.io/control-plane
45+
operator: Exists
3446
registry: mcr.microsoft.com/oss
3547
# Image and registry configuration for the tigera/operator pod.
3648
tigeraOperator:

templates/addons/cluster-api-helm/calico-ipv6.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ spec:
2626
encapsulation: None
2727
natOutgoing: Enabled
2828
nodeSelector: all(){{end}}
29+
typhaDeployment:
30+
spec:
31+
template:
32+
spec:
33+
affinity:
34+
nodeAffinity:
35+
preferredDuringSchedulingIgnoredDuringExecution:
36+
- weight: 50
37+
preference:
38+
matchExpressions:
39+
- key: node-role.kubernetes.io/control-plane
40+
operator: Exists
2941
registry: mcr.microsoft.com/oss
3042
# Image and registry configuration for the tigera/operator pod.
3143
tigeraOperator:

templates/addons/cluster-api-helm/calico.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ spec:
2424
ipPools:{{range $i, $cidr := .Cluster.spec.clusterNetwork.pods.cidrBlocks }}
2525
- cidr: {{ $cidr }}
2626
encapsulation: VXLAN{{end}}
27+
typhaDeployment:
28+
spec:
29+
template:
30+
spec:
31+
affinity:
32+
nodeAffinity:
33+
preferredDuringSchedulingIgnoredDuringExecution:
34+
- weight: 50
35+
preference:
36+
matchExpressions:
37+
- key: node-role.kubernetes.io/control-plane
38+
operator: Exists
2739
registry: mcr.microsoft.com/oss
2840
# Image and registry configuration for the tigera/operator pod.
2941
tigeraOperator:

templates/test/ci/cluster-template-prow-apiserver-ilb.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-ci-version-dra.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-ci-version-dual-stack.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-ci-version-ipv6.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-ci-version-md-and-mp.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-ci-version.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/test/ci/cluster-template-prow-clusterclass-ci-rke2.yaml

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)