Skip to content

Commit

Permalink
test: use kubernetes v1.23 for aks cluster (#590)
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <[email protected]>
  • Loading branch information
aramase committed Oct 12, 2022
1 parent 529d525 commit 4cc5768
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/create-aks-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,8 @@ main() {
timeout --foreground 1200 bash -c register_feature
echo "Creating an AKS cluster '${CLUSTER_NAME}'"
LOCATION="$(get_random_region)"
# get the latest patch version of 1.22
# pinning to 1.22 with upgrade to 1.23 because windows agent pool is not supported for k8s version above 1.24.0
# ERROR: (AgentPoolK8sVersionNotSupported) windows agentpool is not supported for k8s version above 1.24.0
# TODO(aramase): move this to 1.23 or 1.24 after the issue is fixed
KUBERNETES_VERSION="$(az aks get-versions --location "${LOCATION}" --query 'orchestrators[*].orchestratorVersion' -otsv | grep '1.22' | tail -1)"
# get the latest patch version of 1.23
KUBERNETES_VERSION="$(az aks get-versions --location "${LOCATION}" --query 'orchestrators[*].orchestratorVersion' -otsv | grep '1.23' | tail -1)"
az group create --name "${CLUSTER_NAME}" --location "${LOCATION}" > /dev/null
# TODO(chewong): ability to create an arc-enabled cluster
az aks create \
Expand Down

0 comments on commit 4cc5768

Please sign in to comment.