Skip to content

Latest commit

 

History

History
233 lines (185 loc) · 7.92 KB

component-install-tracker.md

File metadata and controls

233 lines (185 loc) · 7.92 KB
Status Active
Owner Mallory Hill
Last Updated 2026-10-26

Component Install Tracker

This document covers the latest requirements and dependencies for the hyperfleet components managed through the operator.

Current components: api, 5 sentinels (clusters, wifconfigs, nodepools, versions, channels)

Contents

Required objects

Note: The operator never creates the Secrets below; you must provide them. Every Secret must live in the operator's namespace (hyperfleet-system by default).

Object Name Required when Contents
Secret hyperfleet-db (any name; must equal spec.api.database.secretRef.name) Always (API) db.host, db.port, db.name, db.user, db.password
Secret hyperfleet-broker-credentials (fixed name) Broker type is RabbitMQ, the default (Sentinel) BROKER_RABBITMQ_URL

A missing Secret does not stop the reconcile. The operator hashes it as absent and sets Degraded=True with reason ReferencedSecretMissing, listing the missing Secrets. Creating it afterwards recovers the CR and rolls the affected pods.

Component details

API

  • Requires a valid postgreSQL database
  • Requires a secret with database credentials
# hyperfleet-db.yaml
apiVersion: v1
kind: Secret
type: Opaque
metadata:
  name: hyperfleet-db
  namespace: <operator_namespace>
stringData:
  db.host: <...>
  db.port: <...>
  db.name: <...>
  db.user: <...>
  db.password: <...>

Sentinel

The broker backend is chosen by environment variables on the operator Deployment, not by the CR:

Variable Value Notes
BROKER_TYPE rabbitmq or googlepubsub Defaults to rabbitmq when unset; any other value stops the operator at startup
BROKER_GOOGLEPUBSUB_PROJECT_ID A valid GCP project ID Required when BROKER_TYPE=googlepubsub

make deploy chooses the broker with the BROKER_TYPE make variable (default rabbitmq; any other value except googlepubsub fails the build). With RabbitMQ, no broker variables are added to the operator Deployment, because the operator already defaults to it. With googlepubsub, make deploy renders config/overlays/googlepubsub, which adds both variables, and fails if BROKER_GOOGLEPUBSUB_PROJECT_ID is empty:

make deploy RELATED_IMAGE_HYPERFLEET_OPERATOR=$OPERATOR_IMG \
  BROKER_TYPE=googlepubsub BROKER_GOOGLEPUBSUB_PROJECT_ID=<gcp-project-id>

Google Pub/Sub

With BROKER_TYPE=googlepubsub, the operator creates no Pub/Sub resources and mounts no Google credentials. Before you create the HyperFleetConfig:

  • Create one topic per resource type, named <operator namespace>-<resource type>, for example hyperfleet-system-clusters. Sentinel does not create topics.
  • Give the Sentinel pods Google Application Default Credentials through workload identity for the ServiceAccounts hyperfleet-sentinel-<resource type>. The operator sets no key file and no GOOGLE_APPLICATION_CREDENTIALS.
  • Grant those ServiceAccounts pubsub.topics.publish on the topics and pubsub.topics.get in the project. The Sentinel readiness check calls GetTopic, so without pubsub.topics.get the pods never become ready. roles/pubsub.publisher does not include pubsub.topics.get.
  • Let the Sentinel pods reach pubsub.googleapis.com:443.

Secrets

  • BROKER_TYPE=googlepubsub needs no Secret; see Google Pub/Sub.
  • BROKER_TYPE=rabbitmq requires a secret named hyperfleet-broker-credentials that contains the RabbitMQ url
# hyperfleet-broker-credentials.yaml
apiVersion: v1
kind: Secret
type: Opaque
metadata:
  name: hyperfleet-broker-credentials
  namespace: <operator_namespace>
stringData:
  # amqp://user:password@host:port/vhost
  BROKER_RABBITMQ_URL: <...>

Local Testing - Kind

Note: BROKER_TYPE defaults to rabbitmq

1. Create the cluster and namespace

kind create cluster --name hyperfleet-kind
export NAMESPACE=hyperfleet-system
kubectl create namespace $NAMESPACE

2. Install the dependencies

PostgreSQL and RabbitMQ run in the same namespace:

helm install postgresql <postgres_chart> -n $NAMESPACE
helm install rabbitmq <rabbitmq_chart> -n $NAMESPACE

3. Create the Secrets

# Database credentials (required for the API)
kubectl create secret generic hyperfleet-db -n $NAMESPACE \
  --from-literal=db.host=<postgres-service-name> \
  --from-literal=db.port=5432 \
  --from-literal=db.name=<database> \
  --from-literal=db.user=<user> \
  --from-literal=db.password=<password>

# Broker credentials (required for Sentinel with RabbitMQ)
kubectl create secret generic hyperfleet-broker-credentials -n $NAMESPACE \
  --from-literal=BROKER_RABBITMQ_URL=<amqp://user:password@host:port/vhost>

4. Build and deploy the operator

export OPERATOR_IMG=quay.io/<quay-user>/hyperfleet-operator:dev-<git-sha>
make image-dev QUAY_USER=<quay-user>
make deploy RELATED_IMAGE_HYPERFLEET_OPERATOR=$OPERATOR_IMG

make image-dev tags the image dev-<git-sha>. make deploy installs the CRD and the operator into hyperfleet-system.

5. Create a HyperFleetConfig

spec.authentication is always required.

Create a HyperFleetConfig

kubectl apply -f - <<'EOF'
apiVersion: hyperfleet.redhat.com/v1alpha1
kind: HyperFleetConfig
metadata:
  name: cluster
spec:
  bundle: cloud-capi
  api:
    database:
      secretRef:
        name: hyperfleet-db
    profile: small
  authentication:
    audience: hyperfleet-api
    identityProviders:
      - issuer: https://idcs-example.identity.oraclecloud.com
        tenantDimensions:
          tenancy_ocid:
            claim: tenancy_ocid
EOF

6. Verify

kubectl get hyperfleetconfigs.hyperfleet.redhat.com cluster \
  -o jsonpath='{range .status.conditions[*]}{.type}={.status} ({.reason}): {.message}{"\n"}{end}'

A healthy install reports:

Degraded=False (AsExpected): no failure detected
Available=True (DeploymentAvailable): all components are available
Progressing=False (RolloutComplete): all components have completed rollout

7. Cleanup

# uninstall rabbitmq and postgresql
helm uninstall postgresql -n $NAMESPACE
helm uninstall rabbitmq -n $NAMESPACE

# uninstall the secrets
kubectl delete secret hyperfleet-db -n $NAMESPACE
kubectl delete secret hyperfleet-broker-credentials -n $NAMESPACE

# uninstall the HyperFleetConfig
kubectl delete hyperfleetconfigs.hyperfleet.redhat.com cluster

make undeploy
# delete the cluster
kind delete cluster --name hyperfleet-kind