5. Deploy Project in AKS - AnbuMani27/Kubernetes-with-Helm-Charts GitHub Wiki
-
Navigate to the Main folder in the VS Code Terminal eg., (D:\Samples\Helm\Charts), which consist of helm chart we created.
-
Open the terminal in the VS Code and Login Azure Account.
az login
Note: If suppose az login will not works you need to install Azure CLI
-
Enter the credentials on the azure login page that popup.
-
Install AKS Cli using the below command.
-
Login to azure using the URL
-
Go to as you created in Azure Kubernetes Service(AKS).
-
Open the selected AKS and click on the Connect, it will open the command that needs to run in you system.
-
In the visual studio terminal, execute the below commands copied from the slide window as shown in the below image.
az account set --subscription <subscription-id> //as copied from the portal az aks get-credentials --resource-group <yourresourcegroupname> --name <Container Name> //as copied from the portal
-
You should see the below message which confirms the successful connection of AKS to your system.
-
Install the nginx chart to the kubectl, without this the nginx ingress will not function.
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.35.0/deploy/static/provider/cloud/deploy.yaml helm repo add nginx-stable https://helm.nginx.com/stable helm repo update helm install nginx-install-kube nginx-stable/nginx-ingress
-
Run the below command in the charts folder.
helm install kubehelmapi-stage .
-
You should see below message, if your helm has successfully deployed.