From 92d260e1975a6a816b6ec0d084327a46c7a6ab40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 21 Jan 2022 20:04:24 +0300 Subject: [PATCH] Update renew-account-certificate.ps1 --- etc/azure/scripts/renew-account-certificate.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/azure/scripts/renew-account-certificate.ps1 b/etc/azure/scripts/renew-account-certificate.ps1 index be6f8e6..e560644 100644 --- a/etc/azure/scripts/renew-account-certificate.ps1 +++ b/etc/azure/scripts/renew-account-certificate.ps1 @@ -1,7 +1,12 @@ +$currentFolder = $PSScriptRoot +Set-Location $currentFolder + kubectl delete -f .\corednsms.yaml --ignore-not-found=true kubectl delete pod --namespace kube-system -l k8s-app=kube-dns --ignore-not-found=true kubectl rollout status deployment --namespace kube-system coredns kubectl delete certificate eh-az-account-tls + sleep 60 + kubectl apply -f .\corednsms.yaml kubectl delete pod --namespace kube-system -l k8s-app=kube-dns \ No newline at end of file