5. Deploy Project in AKS - AnbuMani27/Kubernetes-with-Helm-Charts GitHub Wiki

  1. Navigate to the Main folder in the VS Code Terminal eg., (D:\Samples\Helm\Charts), which consist of helm chart we created.

  2. 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

  3. Enter the credentials on the azure login page that popup.

  4. Install AKS Cli using the below command.

  5. Login to azure using the URL

  6. Go to as you created in Azure Kubernetes Service(AKS).

  7. Open the selected AKS and click on the Connect, it will open the command that needs to run in you system.

    alt-text

  8. 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
    

    alt-text

  9. You should see the below message which confirms the successful connection of AKS to your system.

    alt-text

  10. 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
    
  11. Run the below command in the charts folder.

     helm install kubehelmapi-stage .
    
  12. You should see below message, if your helm has successfully deployed.

    alt-text