From b054abb4f6d15f634d9513369b546c77c8bee92e Mon Sep 17 00:00:00 2001 From: Houssem Dellai Date: Tue, 24 Sep 2024 16:21:30 +0200 Subject: [PATCH] 35 --- 26_http_ingress/commands.sh | 4 ++-- 27_https_ingress_tls_secret/commands.ps1 | 4 ++-- 27_https_ingress_tls_secret/commands.sh | 2 +- 29_https_ingress_keyvault/commands.sh | 4 ++-- 35_app_gateway_ingress/commands.ps1 | 4 ++-- 40_secret_store_csi_keyvault/commands.ps1 | 1 - 6 files changed, 9 insertions(+), 10 deletions(-) diff --git a/26_http_ingress/commands.sh b/26_http_ingress/commands.sh index 6137f13..fd05d20 100644 --- a/26_http_ingress/commands.sh +++ b/26_http_ingress/commands.sh @@ -197,8 +197,8 @@ kubectl get pods,svc,ingress --namespace $NAMESPACE_APP_01 # check app is running behind Nginx Ingress Controller (with no HTTPS) curl http://$INGRESS_PUPLIC_IP -curl http://$INGRESS_PUPLIC_IP/aks-helloworld-one -curl http://$INGRESS_PUPLIC_IP/aks-helloworld-two +curl http://$INGRESS_PUPLIC_IP/hello-world-one +curl http://$INGRESS_PUPLIC_IP/hello-world-two # Mapping a domain name (Azure Public IP) diff --git a/27_https_ingress_tls_secret/commands.ps1 b/27_https_ingress_tls_secret/commands.ps1 index 198f08f..73eafde 100644 --- a/27_https_ingress_tls_secret/commands.ps1 +++ b/27_https_ingress_tls_secret/commands.ps1 @@ -2,9 +2,9 @@ $AKS_RG="rg-aks-tls" $AKS_NAME="aks-cluster" -az group create -n $AKS_RG -l westeurope +az group create -n $AKS_RG -l swedencentral -az aks create -g $AKS_RG -n $AKS_NAME --network-plugin azure --kubernetes-version "1.25.2" --node-count 2 +az aks create -g $AKS_RG -n $AKS_NAME --network-plugin azure --network-plugin-mode overlay az aks get-credentials --name $AKS_NAME -g $AKS_RG --overwrite-existing diff --git a/27_https_ingress_tls_secret/commands.sh b/27_https_ingress_tls_secret/commands.sh index f42b331..22e74a5 100644 --- a/27_https_ingress_tls_secret/commands.sh +++ b/27_https_ingress_tls_secret/commands.sh @@ -4,7 +4,7 @@ AKS="aks-cluster" az group create -n $RG -l westeurope -az aks create -g $RG -n $AKS --network-plugin azure --kubernetes-version "1.25.2" --node-count 2 +az aks create -g $RG -n $AKS --network-plugin azure --network-plugin-mode overlay az aks get-credentials --name $AKS -g $RG --overwrite-existing diff --git a/29_https_ingress_keyvault/commands.sh b/29_https_ingress_keyvault/commands.sh index 6121e88..6afedef 100644 --- a/29_https_ingress_keyvault/commands.sh +++ b/29_https_ingress_keyvault/commands.sh @@ -1,10 +1,10 @@ # create an AKS cluster -RG="rg-aks-we" +RG="rg-aks-cluster" AKS="aks-cluster" az group create -n $RG -l westeurope -az aks create -g $RG -n $AKS --network-plugin azure --kubernetes-version "1.25.2" --node-count 2 +az aks create -g $RG -n $AKS --network-plugin azure --node-count 2 az aks get-credentials --name $AKS -g $RG --overwrite-existing diff --git a/35_app_gateway_ingress/commands.ps1 b/35_app_gateway_ingress/commands.ps1 index cb36a49..f2fcbe6 100644 --- a/35_app_gateway_ingress/commands.ps1 +++ b/35_app_gateway_ingress/commands.ps1 @@ -1,6 +1,6 @@ # create an AKS cluster with Azure CNI network plugin -az group create -n rg-aks-cluster -l westeurope +az group create -n rg-aks-cluster -l swedencentral az aks create -n aks-cluster -g rg-aks-cluster --network-plugin azure @@ -15,7 +15,7 @@ az aks addon enable -n aks-cluster -g rg-aks-cluster ` # connect to AKS cluster -az aks get-credentials -n aks-cluster -g rg-aks-cluster +az aks get-credentials -n aks-cluster -g rg-aks-cluster --overwrite-existing # view the ingress class created by AGIC diff --git a/40_secret_store_csi_keyvault/commands.ps1 b/40_secret_store_csi_keyvault/commands.ps1 index 253df36..7cd5d44 100644 --- a/40_secret_store_csi_keyvault/commands.ps1 +++ b/40_secret_store_csi_keyvault/commands.ps1 @@ -10,7 +10,6 @@ $AKS_NAME="aks-cluster" az group create -n $AKS_RG -l westeurope az aks create -g $AKS_RG -n $AKS_NAME ` - --kubernetes-version "1.26.3" ` --enable-managed-identity ` --node-count 3 ` --network-plugin azure `