Managing Key Pairs
Create, update or delete key pairs.
A key pair is stored as a Kubernetes
Secretof typekubernetes.io/ssh-public-key; only the public key is kept — the platform never stores your private key. Key pairs are consumed when creating a virtual machine through Associated SSH Keys (injected via cloud-init).
Creating Key Pairs
-
Navigate to Container Platform.
-
In the left navigation bar, click Virtualization > Key Pairs.
-
Click Create Key Pair.
Currently, only SSH type key pairs are supported. You can manually import keys or let the system automatically generate a key pair. When using the system-generated key pair, the platform supports automatically downloading the private key to your local machine. The platform will not save the private key.
-
Click Create.
Updating Key Pairs
-
Navigate to Container Platform.
-
In the left navigation bar, click Virtualization > Key Pairs.
-
Locate the Key Pair Name, click ⋮ > Update.
-
After re-importing or having the system generate a new key pair, click Update.
Deleting Key Pairs
-
Navigate to Container Platform.
-
In the left navigation bar, click Virtualization > Key Pairs.
-
Locate the Key Pair Name, click ⋮ > Delete, and confirm.
Using the API
A key pair is a Secret of type kubernetes.io/ssh-public-key whose ssh-publickey value is the public key:
Reference the key when creating a virtual machine through Associated SSH Keys; the platform injects the public key into the guest via cloud-init ssh_authorized_keys.