Monday 26 February 2018

Running MiniKube and Azure AKS together

I was running MiniKube locally on my dev machine but trying to use kubectl to connect to an Azure AKS cluster.
The "active" cluster that kubectl is trying to manage is set in .kube\config.
To switch from the local MiniKube to managing the AKS cluster I had to run the following PowerShell:

az login
az account set –-subscription "MySubscription"
az aks get-credentials --resource-group andy-test-aks --name andy-test-aks-cluster

Merged "andy-test-aks-cluster" as current context in C:\Users\AndrewPotts\.kube\config

kubectl cluster-info

No comments:

Post a Comment