Follow the install doc or paste this to run an automated install script which auto-detects and handles Mac or Linux:
git clone https://github.com/HariSekhon/DevOps-Bash-tools
bash-tools/install/install_azure_cli.sh
Then authenticate using one of the documented methods eg:
az login
First set up your Azure CLI as above.
Run the aks_kube_creds.sh
script from the DevOps-Bash-tools repo's azure
directory.
This will find and configure all your kubernetes clusters in the current project.
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
kubectl config get-contexts
switch to the cluster you want:
kubectl config use-context <name>
kubectl get pods --all-namespaces
Then see Kubernetes for configs, scripts and .envrc
.