Search code examples
azurekubernetesazure-container-service

How do I ssh to nodes in ACS Kubernetes cluster?


I have created an ACS Kubernetes cluster following the instructions here: https://learn.microsoft.com/en-us/azure/container-service/container-service-kubernetes-walkthrough .

I see that master node has a public IP and I can ssh into the master node using azureuser. But regular nodes has no public IP and I don't see how I can ssh into regular nodes from master node.

How do I SSH into the regular nodes?


Solution

  • You could copy the private key to your master VM. Then you could use ssh -i <path>/id_rsa user@<agent private IP> to k8s agent VM.

    Note: agent's user name and private key is same with master VM.