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".

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct