Skip to main content

Command Palette

Search for a command to run...

kubernetes

Published
1 min read
A

DevOps Engineer with the Azure DevOps pipelines and repos and deployment skills. Passionate about learning about the DevOps tools and how it automates our deliverables.


📘 Documentation: Deploy Robot-Shop Application on Azure AKS using Helm

1️⃣ Prerequisites

System Requirements

  • Windows machine

  • PowerShell (run as Administrator)

  • Azure subscription with AKS permissions

Tools Required

  • Azure CLI

  • kubectl

  • Helm

  • Chocolatey (for Windows package management)


2️⃣ Install Chocolatey (Windows Package Manager)

Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Verify:

choco --version

3️⃣ Install Helm using Chocolatey

choco install kubernetes-helm -y

Verify:

helm version

4️⃣ Login to Azure

az login

Select the correct subscription when prompted.

Verify AKS exists:

az aks list -o table

5️⃣ Configure kubectl for AKS Cluster (IMPORTANT STEP)

❗ Most errors earlier happened because kubeconfig was not set

az aks get-credentials `
  --resource-group ecommercedemopractice `
  --name ecommerceAKS `
  --overwrite-existing

Verify connection:

kubectl get nodes

✅ You should see nodes in Ready state.


6️⃣ Navigate to Helm Chart Directory

cd C:\Users\<your-user>\downloads\three-tier-architecture-demo\AKS\helm

Make sure Chart.yaml exists:

ls

7️⃣ Deploy Robot-Shop Application using Helm

Basic Installation (creates namespace automatically)

helm install robot-shop . `
  --namespace robot-shop `
  --create-namespace

Verify:

kubectl get pods -n robot-shop