From 0cde823aa013e71ce3996a1d0bdfb611497453a5 Mon Sep 17 00:00:00 2001 From: vimal-knoldus Date: Mon, 25 Sep 2023 17:49:03 +0530 Subject: [PATCH] Update azure deployment file --- az-svc-deployment.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/az-svc-deployment.sh b/az-svc-deployment.sh index 341bc0c9..5d61ea73 100644 --- a/az-svc-deployment.sh +++ b/az-svc-deployment.sh @@ -29,6 +29,9 @@ echo "---------------set docker image for kustomize-------------------" ./kustomize edit set image ntdemocontainerregistry.azurecr.io/IMAGE:TAG=ntdemocontainerregistry.azurecr.io/"$SERVICE_NAME":"$GITHUB_SHA" echo "---------------deploy through kubectl------------------" # deploy through kubectl +mkdir -p $HOME/.kube +sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config +sudo chown $(id -u):$(id -g) $HOME/.kube/config ./kustomize build . | kubectl apply -f - kubectl rollout status deployment/"$DEPLOYMENT_NAME" kubectl get services -o wide