a story of kubelogin mess up my aks setup


Following aks connect instructions to run the following command  

kubelogin convert-kubeconfig -l azurecli

Then after i try to run something like 

 kubectl get deployments --all-namespaces=true

Then i get the following error: 

Error: failed to get token: expected an empty error but received: AzureCLICredential: exit status 1

To resolve this, I had to re-run the entire step (clear your kubeconfig along the way)


az aks get-credentials --resource-group myresourcegroup --name mycluster

and skip the kubelogin step as show above (just continue to do kubectl get pods or something) 






Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm