Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ steps:
AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) \
CLUSTER=${{ parameters.clusterName }} NODE_COUNT=${{ parameters.nodeCount }} NODE_COUNT_WIN=${{ parameters.nodeCountWin }} \
VM_SIZE=${{ parameters.vmSize }} VM_SIZE_WIN=${{ parameters.vmSizeWin }} \
WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD} \
OS_SKU=${{ parameters.osSKU }} OS_SKU_WIN=${{ parameters.osSkuWin }} OS=${{ parameters.os }}
echo "Cluster successfully created"

Expand Down
4 changes: 2 additions & 2 deletions .pipelines/cni/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ stages:
- template: singletenancy/cniv1-template.yaml
parameters:
name: win22_cniv1
clusterType: windows-cniv1-up
clusterType: cniv1-up
clusterName: "win22-cniv1"
nodeCount: ${NODE_COUNT_WINCLUSTER_SYSTEMPOOL}
nodeCountWin: ${NODE_COUNT_WIN}
Expand Down Expand Up @@ -229,7 +229,7 @@ stages:
- template: singletenancy/cniv1-template.yaml
parameters:
name: linux_cniv1
clusterType: linux-cniv1-up
clusterType: cniv1-up
clusterName: "linux-cniv1"
nodeCount: ${NODE_COUNT_LINUX}
vmSize: ${VM_SIZE}
Expand Down
1 change: 1 addition & 0 deletions .pipelines/cni/singletenancy/cniv1-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ stages:
vmSizeWin: ${{ parameters.vmSizeWin }}
region: $(location)
osSKU: ${{ parameters.osSKU }}
os: ${{ parameters.os }}

# If ensures that only windows template calls are compared against the below condition
# Condition confirms that:
Expand Down
6 changes: 3 additions & 3 deletions .pipelines/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ stages:
displayName: AKS Ubuntu 22
arch: "amd64"
os: "linux"
clusterType: linux-cniv1-up
clusterType: cniv1-up
clusterName: "ubuntu22e2e"
vmSize: Standard_B2s
k8sVersion: 1.25
Expand All @@ -359,8 +359,8 @@ stages:
name: "aks_windows_22_e2e"
displayName: AKS Windows 2022
arch: amd64
os: windows
clusterType: windows-cniv1-up
os: "windows"
clusterType: cniv1-up
clusterName: "win22e2e"
vmSize: Standard_B2ms
os_version: "ltsc2022"
Expand Down
2 changes: 2 additions & 0 deletions .pipelines/singletenancy/aks-swift/e2e-job-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ parameters:
clusterName: ""
vmSize: ""
k8sVersion: ""
os: ""
dependsOn: ""

stages:
Expand All @@ -27,6 +28,7 @@ stages:
vmSize: ${{ parameters.vmSize }}
k8sVersion: ${{ parameters.k8sVersion }}
dependsOn: ${{ parameters.dependsOn }}
os: ${{ parameters.os }}
region: $(REGION_AKS_CLUSTER_TEST)

- stage: ${{ parameters.name }}
Expand Down
1 change: 1 addition & 0 deletions .pipelines/singletenancy/aks/e2e-job-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ stages:
vmSizeWin: ${{ parameters.vmSize }} # Matching linux vmSize
k8sVersion: ${{ parameters.k8sVersion }}
dependsOn: ${{ parameters.dependsOn }}
os: ${{ parameters.os }}
region: $(REGION_AKS_CLUSTER_TEST)

- stage: ${{ parameters.name }}
Expand Down
3 changes: 1 addition & 2 deletions .pipelines/templates/create-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ jobs:
AZCLI=az REGION=${{ parameters.region }} SUB=$(SUB_AZURE_NETWORK_AGENT_BUILD_VALIDATIONS) \
CLUSTER=${{ parameters.clusterName }} \
VM_SIZE=${{ parameters.vmSize }} VM_SIZE_WIN=${{ parameters.vmSizeWin }} \
OS_SKU_WIN=${{ parameters.osSkuWin }} OS=${{parameters.os}} \
WINDOWS_USERNAME=${WINDOWS_USERNAME} WINDOWS_PASSWORD=${WINDOWS_PASSWORD}
OS_SKU_WIN=${{ parameters.osSkuWin }} OS=${{ parameters.os }}

echo "Cluster successfully created"
displayName: Cluster - ${{ parameters.clusterType }}
Expand Down
24 changes: 5 additions & 19 deletions hack/aks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ overlay-byocni-up: rg-up overlay-net-up ## Brings up a Linux Overlay BYO CNI clu
--yes
@$(MAKE) set-kubeconf
ifeq ($(OS),windows)
AZCLI="az" GROUP="$(GROUP)" CLUSTER="$(CLUSTER)" sh ../scripts/wait-cluster-update.sh
$(MAKE) windows-nodepool-up
endif

Expand Down Expand Up @@ -343,23 +342,7 @@ vnetscale-swift-up: rg-up vnetscale-swift-net-up ## Bring up a Vnet Scale SWIFT
--yes
@$(MAKE) set-kubeconf

windows-cniv1-up: rg-up overlay-net-up ## Bring up a Windows CNIv1 cluster
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
--auto-upgrade-channel $(AUTOUPGRADE) \
--node-os-upgrade-channel $(NODEUPGRADE) \
--kubernetes-version $(K8S_VER) \
--node-count $(NODE_COUNT) \
--node-vm-size $(VM_SIZE) \
--network-plugin azure \
--windows-admin-password $(WINDOWS_PASSWORD) \
--windows-admin-username $(WINDOWS_USERNAME) \
--vnet-subnet-id /subscriptions/$(SUB)/resourceGroups/$(GROUP)/providers/Microsoft.Network/virtualNetworks/$(VNET)/subnets/nodenet \
--no-ssh-key \
--yes
@$(MAKE) windows-nodepool-up
@$(MAKE) set-kubeconf

linux-cniv1-up: rg-up overlay-net-up ## Bring up a Linux CNIv1 cluster
cniv1-up: rg-up overlay-net-up ## Bring up a CNIv1 cluster
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
--auto-upgrade-channel $(AUTOUPGRADE) \
--node-os-upgrade-channel $(NODEUPGRADE) \
Expand All @@ -373,6 +356,9 @@ linux-cniv1-up: rg-up overlay-net-up ## Bring up a Linux CNIv1 cluster
--no-ssh-key \
--yes
@$(MAKE) set-kubeconf
ifeq ($(OS),windows)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a cluster having Windows nodes is...something we support and expect to happen and all of our test clusters should include?
Instead of being mostly ignored except for during the tests which specifically excercise Windows things?
WDYT @behzad-mir

$(MAKE) windows-nodepool-up
endif

dualstack-overlay-up: rg-up overlay-net-up ## Brings up an dualstack Overlay cluster with Linux node only
$(AZCLI) aks create -n $(CLUSTER) -g $(GROUP) -l $(REGION) \
Expand Down Expand Up @@ -406,7 +392,6 @@ dualstack-overlay-byocni-up: rg-up overlay-net-up ## Brings up an dualstack Over
--yes
@$(MAKE) set-kubeconf
ifeq ($(OS),windows)
AZCLI="az" GROUP="$(GROUP)" CLUSTER="$(CLUSTER)" sh ../scripts/wait-cluster-update.sh
$(MAKE) windows-nodepool-up
endif

Expand Down Expand Up @@ -445,6 +430,7 @@ dualstack-byocni-nokubeproxy-up: rg-up overlay-net-up ## Brings up a Dualstack o
@$(MAKE) set-kubeconf

windows-nodepool-up: ## Add windows node pool
AZCLI="az" GROUP="$(GROUP)" CLUSTER="$(CLUSTER)" sh ../scripts/wait-cluster-update.sh
$(AZCLI) aks nodepool add -g $(GROUP) -n npwin \
--node-count $(NODE_COUNT_WIN) \
--node-vm-size $(VM_SIZE_WIN) \
Expand Down
3 changes: 1 addition & 2 deletions hack/aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ AKS Clusters
vnetscale-swift-byocni-nokubeproxy-up Bring up a Vnet Scale SWIFT BYO CNI cluster without kube-proxy
vnetscale-swift-cilium-up Bring up a Vnet Scale SWIFT Cilium cluster
vnetscale-swift-up Bring up a Vnet Scale SWIFT AzCNI cluster
windows-cniv1-up Bring up a Windows AzCNIv1 cluster
linux-cniv1-up Bring up a Linux AzCNIv1 cluster
cniv1-up Bring up a AzCNIv1 cluster
dualstack-overlay-byocni-up Bring up an dualstack overlay cluster without CNS and CNI installed
cilium-dualstack-up Brings up a Cilium Dualstack Overlay cluster with Linux node only
dualstack-byocni-nokubeproxy-up Brings up a Dualstack overlay BYOCNI cluster with Linux node only and no kube-proxy
Expand Down
Loading