Add an SSH key

Adding you SSH key to access the environment

Context

MetaKube doesn't need your SSH key to create clusters, but you can automatically add your public key to nodes, to access them for debugging purposes.

We strongly advise against managing packages or configuration on Kubernetes nodes using SSH.
Kubernetes nodes should be considered replaceable.

Prerequisites

For this you need to have a public key or be able to create a key pair.
If you are not familiar with this topic, please check with your local IT department.

Steps

SSH keys are tied to a project. To add an SSH key, navigate to SSH Keys section of a project and click Add SSH Key.
This will open create form for you to fill. Enter a unique name and paste the complete content of the SSH key into the respective field.
The public keys can be added to clusters either during cluster creation or afterwards.

New clusters

During cluster creation you can choose which SSH keys should be added to nodes.

Dialog to add an SSH key

Existing clusters

If you enabled User SSH Key Agent during cluster creation you can use UI to dynamically upload SSH Keys. On the cluster details page open the menu at the top right corner and select Manage SSH Keys:

Change keys of an existing cluster

In the popup you can add and remove keys.

The changes are then applied to all existing and future nodes of the cluster.

Change keys of an existing cluster

Clean-up

There is no clean-up for this tutorial, because you will need this for all further tutorials.
If you want to delete your public key, use the Manage SSH Keys for existing clusters option described above.