ForĀ other OS checkout “Ref” at the end of this blog.
Install Azure CLI on macOS
brew update && brew install azure-cli
Then you need to SignIn using:
az login
Sign in with your account credentials in the browser.
Install kubectl on macOS
brew install kubectl
Connect to cluster using kubectl
az aks get-credentials –resource-group myResourceGroup –name myAKSCluster
Now you can interact with kubernete, e.g:
$ kubectl get nodes
$ kubectl get pods
Ref:
- Azure CLI: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos?view=azure-cli-latest
- Install Kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-macos
- Setup Kubectl: https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster