Kubectl on wsl ubuntu for aks
Jump to navigation
Jump to search
Use WSL Version 1 due to VPN Issues
wsl --install computer-restart wsl.exe --list --online wsl --set-default-version 1 wsl --install -d Ubuntu-22.04 wsl.exe --setdefault Ubuntu-22.04 bash
Install Azure tools for AKS
sudo apt update && sudo apt -y install unzip curl -LO https://github.com/Azure/kubelogin/releases/download/v0.0.29/kubelogin-linux-amd64.zip unzip kubelogin-linux-amd64.zip sudo cp bin/linux_amd64/kubelogin /usr/local/bin/ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Kubectl
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" sudo mv kubectl /usr/local/bin/
Helm
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 chmod 700 get_helm.sh ./get_helm.sh