Skip to main content
Version: 1.1.2

KeyPair

PropertyValue
KindKeyPair
API Group/Versionarubacloud.com/v1alpha1
CRD Namekeypairs.arubacloud.com
ScopeNamespaced
Short Nameskp, arukp

Description

A KeyPair registers an SSH public key in Aruba Cloud. CloudServers reference a KeyPair to allow SSH access: when a CloudServer is provisioned, the public key is injected into the server, enabling passwordless login with the corresponding private key.

Spec Fields

FieldTypeRequiredDefaultValidationDescription
tenantstringNoAruba Cloud tenant identifier. Must match the owning Project's tenant.
regionstringYesITBG-BergamoAruba Cloud region
valuestringYesMin length: 1The SSH public key string (e.g., ssh-ed25519 AAAA...)
tags[]stringNoLabels propagated to the Aruba Cloud resource
projectReferenceResourceReferenceYesReference to the owning Project

Status Fields

FieldTypeDescription
phasestringCurrent lifecycle phase
resourceIDstringAruba Cloud KeyPair ID, set after creation
messagestringHuman-readable status message
observedGenerationint64Last .metadata.generation processed
phaseStartTimetimestampWhen the current phase began
conditions[]ConditionStandard Kubernetes conditions
projectIDstringResolved Aruba Cloud project ID

References

Owned by: Project

Referenced by:

Lifecycle

  • Creation ordering: The Project must be Active.
  • Deletion behaviour: KeyPairs have no children. Deletion calls the Aruba Cloud API and removes the finalizer. Note: deleting a KeyPair that is currently referenced by a CloudServer may cause issues on the cloud side; delete the CloudServer first.
  • Update behaviour: tags can be updated. value (the public key) is effectively immutable — changing it requires recreating the KeyPair.

Example

apiVersion: arubacloud.com/v1alpha1
kind: KeyPair
metadata:
name: my-ssh-key
namespace: default
spec:
tenant: ARU-123456
region: ITBG-Bergamo
value: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExampleKeyValueHereReplaceWithYourPublicKey user@host"
projectReference:
name: my-project
namespace: default
tags:
- platform-team

kubectl Quick Reference

# List all key pairs
kubectl get kp -n default

# Describe a key pair
kubectl describe arukp my-ssh-key -n default