Skip to content

Commit

Permalink
updated azuredeploy json
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Angali authored and Naveen Angali committed Aug 30, 2023
1 parent aa792ab commit 86cd411
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Azure-ARM/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,10 @@
"name": "AUTHENTICATIONTYPE",
"value": "[variables('AuthenticationType')]"
},
{
"name": "WINDOWSNODEVERSION",
"value": "[variables('WindowsNodeVersion')]"
},
{
"name": "WEBAPPNAME",
"value": "[variables('WEBAPPNAME')]"
Expand Down
24 changes: 14 additions & 10 deletions Azure-ARM/deployprofisee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,18 @@ IFS=':' read -r -a repostring <<< "$PROFISEEVERSION"
ACRREPONAME="${repostring[0],,}";
ACRREPOLABEL="${repostring[1],,}"

#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


#Get the vCPU and RAM so we can change the stateful set CPU and RAM limits on the fly.
echo "Let's see how many vCPUs and how much RAM we can allocate to Profisee's pod on the Windows node size you've selected."
findwinnodename=$(kubectl get nodes -l kubernetes.io/os=windows -o 'jsonpath={.items[0].metadata.name}')
Expand Down Expand Up @@ -557,16 +569,7 @@ 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")";
Expand Down Expand Up @@ -624,6 +627,7 @@ kubectl create secret generic profisee-deploymentlog -n profisee --from-file=$lo
#Change Authentication context: disable local accounts, Enabled Azure AD with Azure RBAC and assign the Azure Kubernetes Service RBAC Cluster Admin role to the Profisee Super Admin account.
echo $"AuthenticationType is $AUTHENTICATIONTYPE";
echo $"Resourcegroup is $RESOURCEGROUPNAME";
echo $"WindowsNodeVersion is $WINDOWSNODEVERSION";
echo $"clustername is $CLUSTERNAME";
if [ "$AUTHENTICATIONTYPE" = "AzureRBAC" ]; then
az aks update -g $RESOURCEGROUPNAME -n $CLUSTERNAME --enable-aad --enable-azure-rbac --disable-local-accounts
Expand Down

0 comments on commit 86cd411

Please sign in to comment.