...
Code Block | ||
---|---|---|
| ||
mkdir /root/.ssh cat >> /root/.ssh/authorized_keys << EOF <<putput the public key here>>here EOF |
To be able to create a ssh session from a client external to kubernetes, a NodePort must be created for the session to pass through. So on a box running the kubectl client , Create the following file and fill in the NAMESPACE and NODE-PORT.
...