问题
How to SSH into a Kubernetes Node or Server hosted on AWS? I have hosted a Kubernetes Server and Node on AWS. I'm able to see the nodes and server from my local laptop with the kubectl get node command.
I need to create a persistent volume for my node but I'm unable to ssh into it.
Is there any specific way to ssh into the node or server?
回答1:
Try this:
ssh -i <path of the private key file> admin@<ip of the aws kube instances>
The perm file should be in $HOME/.ssh/kube_rsa
回答2:
Kubernetes nodes can be accessed similar way how we ssh into other linux machines. Just try ssh with the external ip of that node and you can login into it that way.
来源:https://stackoverflow.com/questions/48518324/how-to-ssh-into-a-kubernetes-node-or-server