Get kubernetes credentials from Azure

5/25/2017
  • I have created a Azure container Service

orchestratorType : Kubernetes Group-Name : Mygrp DNS : MyDNs

  • Now I have to install kubectl on m/c and service , pods too
  • For this I logged into my account from azure CLI
  • I need azure kubernetes credentials for kubectl and command for taht is

az acs kubernetes get-credentials --resource-group=<cluster-resource-group> --name=<cluster-name>

  • From above Info , I know cluster-resource-group is Mygrp (or I am wrong ?) but what will be cluster-name ?

    • Or their is something I have configure for this ?
-- user5594493
azure
azure-virtual-machine
kubectl
kubernetes

1 Answer

5/25/2017

We can find the --name via Azure Portal:

enter image description here

-- Jason Ye
Source: StackOverflow