From d4169942b6e8227e98b4bf15b69ec09338d9c653 Mon Sep 17 00:00:00 2001 From: Naveen Angali Date: Tue, 29 Aug 2023 09:15:02 -0400 Subject: [PATCH] updated code to have csi driver fix for windows 2022 nodes --- Azure-ARM/deployprofisee.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Azure-ARM/deployprofisee.sh b/Azure-ARM/deployprofisee.sh index 5f73600..51ba255 100644 --- a/Azure-ARM/deployprofisee.sh +++ b/Azure-ARM/deployprofisee.sh @@ -225,12 +225,6 @@ if [ "$USEKEYVAULT" = "Yes" ]; then fi -#Installation of Azure File CSI Driver -echo $"Installation of Azure File CSI Driver started."; -echo $"Adding Azure File CSI Driver repo." -helm repo add azurefile-csi-driver https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/charts -helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --set controller.replicas=1 -echo $"Azure File CSI Driver installation finished." #Installation of nginx echo $"Installation of nginx ingress started."; @@ -563,6 +557,17 @@ fi kubectl delete secret profisee-settings -n profisee --ignore-not-found kubectl create secret generic profisee-settings -n profisee --from-file=Settings.yaml +#Installation of Azure File CSI Driver +if [ "$ACRREPOLABEL" = "2023r2.preview-win22"]; then + az aks update -n $CLUSTERNAME -g $RESOURCEGROUPNAME --enable-file-driver --yes +else + echo $"Installation of Azure File CSI Driver started."; + echo $"Adding Azure File CSI Driver repo." + helm repo add azurefile-csi-driver https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/charts + helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --set controller.replicas=1 + echo $"Azure File CSI Driver installation finished." +fi + #################################Install Profisee Start ####################################### echo "Installation of Profisee platform started $(date +"%Y-%m-%d %T")"; helm repo add profisee $HELMREPOURL