How To Add Ssh Keys To Nodes Created In The Rancher K8s Cluster
How To Add Ssh Keys To Nodes Created In The Rancher K8s Cluster.
We have used Ubuntu 18 for all nodes and we want to use ansible for the same to perform node / os level tasks.
1 Reply
This can be added via the cluster.yml
file. Rancher lists some configuration options for Kubernetes in their configuration guide. There's also some information here that might help, specifically the command cat $HOME/.ssh/id_rsa.pub | ssh hostname "sudo tee -a /home/rke/.ssh/authorized_keys"
.