Clusters

A Cluster represents an external Kubernetes cluster that is managed by Greenhouse. Clusters are onboarded to an Organization and can be targeted by Plugins and PluginPresets to deploy infrastructure components.

Example Cluster

apiVersion: greenhouse.sap/v1alpha1
kind: Cluster
metadata:
  name: example-cluster
  namespace: example-organization
  labels:
    metadata.greenhouse.sap/region: europe
    metadata.greenhouse.sap/environment: production
spec:
  accessMode: direct

Working with Clusters

Setting Metadata Labels

Cluster metadata is stored as Kubernetes resource labels with the metadata.greenhouse.sap/ prefix. Add or update metadata labels on an existing Cluster using kubectl:

kubectl label cluster example-cluster \
  metadata.greenhouse.sap/region=europe \
  metadata.greenhouse.sap/environment=production \
  --namespace=example-organization

Next Steps