Skip to content

Commit 1e22684

Browse files
authored
Merge pull request #5784 from nojnhuh/load-vmss-template
Add VMSS-based scalability test templates
2 parents 39d8231 + f0476f1 commit 1e22684

File tree

53 files changed

+3741
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3741
-2
lines changed

scripts/ci-entrypoint.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ setup() {
113113
export CONTROL_PLANE_MACHINE_COUNT="${CONTROL_PLANE_MACHINE_COUNT:-1}"
114114
export CCM_COUNT="${CCM_COUNT:-1}"
115115
export WORKER_MACHINE_COUNT="${WORKER_MACHINE_COUNT:-2}"
116+
export MONITORING_MACHINE_COUNT="${MONITORING_MACHINE_COUNT:-0}"
116117
export EXP_CLUSTER_RESOURCE_SET="true"
117118

118119
# TODO figure out a better way to account for expected Windows node count
@@ -180,10 +181,10 @@ wait_for_copy_kubeadm_config_map() {
180181

181182
# wait_for_nodes returns when all nodes in the workload cluster are Ready.
182183
wait_for_nodes() {
183-
echo "Waiting for ${CONTROL_PLANE_MACHINE_COUNT} control plane machine(s), ${WORKER_MACHINE_COUNT} worker machine(s), and ${WINDOWS_WORKER_MACHINE_COUNT:-0} windows machine(s) to become Ready"
184+
echo "Waiting for ${CONTROL_PLANE_MACHINE_COUNT} control plane machine(s), ${WORKER_MACHINE_COUNT} worker machine(s), ${WINDOWS_WORKER_MACHINE_COUNT:-0} windows machine(s), and ${MONITORING_MACHINE_COUNT} monitoring machine(s) to become Ready"
184185

185186
# Ensure that all nodes are registered with the API server before checking for readiness
186-
local total_nodes="$((CONTROL_PLANE_MACHINE_COUNT + WORKER_MACHINE_COUNT + WINDOWS_WORKER_MACHINE_COUNT))"
187+
local total_nodes="$((CONTROL_PLANE_MACHINE_COUNT + WORKER_MACHINE_COUNT + WINDOWS_WORKER_MACHINE_COUNT + MONITORING_MACHINE_COUNT))"
187188
while [[ $("${KUBECTL}" get nodes -ojson | jq '.items | length') -ne "${total_nodes}" ]]; do
188189
sleep 10
189190
done

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: 31 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.

0 commit comments

Comments
 (0)