Installation phases
The idempotent phases of the Cloudera Cloud Factory installer, in execution order, with the actions that each phase performs and the composite phases.
The installer divides the work into idempotent phases:
| Order | Phase | Description |
|---|---|---|
| 1 | prepare | Creates the cert-manager, taikun, tekton-operator, flux-system, tekton, monitoring, ccf-metering, kyverno, and traefik namespaces. For CERT_ISSUER=acme, it also creates the DNS provider Secret in cert-manager. For CERT_ISSUER=ca, it creates the ccf-ca-secret TLS Secret in cert-manager from CA_CERT_FILE and CA_KEY_FILE. |
| 2 | license | Reads license.txt beside bootstrap.env, verifies its PGP signature and validity dates, and stores the file in the Secret ccf-seed-license (key license.txt) in the taikun namespace. The installer stops if the file is missing, malformed, expired, not yet valid, or has an invalid signature. |
| 3 | secrets | Creates the regcred image pull Secret in the flux-system, cert-manager, kyverno, and traefik namespaces. When REGISTRY_CA_FILE is set, it also creates the registry-ca Secret in flux-system and the registry-ca-bundle Secret in cert-manager. |
| 4 | node-pools | Reads the worker nodes of the cluster and dedicates the workers beyond the first three to Tekton pipelines. The phase labels and taints the Tekton nodes with ccf_workload=tekton, labels the other workers ccf_workload=apps, and sets the tekton_pod_template cluster variable. A cluster with three or fewer workers gets no dedicated Tekton pool, unless you set CLUSTER_VAR_tekton_nodes. |
| 5 | cluster-vars | Creates the cluster-vars ConfigMap in flux-system from the CLUSTER_VAR_ and SMTP variables, including the certificate issuer variables and the Kubernetes OIDC kill switch. It also detects an existing Kyverno instance. |
| 6 | cluster-secrets | Creates the taikun-secrets, pipeline-api-keys, and percona-s3backup-creds Secrets, the Tekton dashboard credentials, the grafana-admin Secret, and the monitoring storage Secrets metrics-s3-creds, traces-s3-creds, and logs-s3-creds. When you set SECRET_OBSERVABILITY_OTLP_AUTHORIZATION, it also creates observability-otlp-auth and metering-dbus-credentials. For VAULT_UNSEAL_MODE set to auto, it creates the ccf-openbao-seal Secret. The phase generates the passwords, keys, and tokens, and it preserves the generated values when you run it again. It refreshes the metering-dbus-credentials Secret, so that you can rotate the access key. |
| 7 | bootstrap-flux | Installs Flux, waits for the custom resource definitions, and applies the OCI source manifest and the flux-system Kustomization. Before the first Flux bootstrap, it verifies that the ccf-seed-license Secret holds a valid license. Skipped when Flux is already bootstrapped. |
| 8 | wait-flux | Waits until the Flux OCIRepository is ready and the infra-controllers and infra-configs Kustomizations reconcile. When REGISTRY_CA_FILE is set, it also sets certSecretRef on the HelmRepositories that point at the registry host. |
| 9 | configure-monitoring | Waits for the flux-system/monitoring Kustomization, and suspends it when MONITORING_ENABLED is false. |
| 10 | wait-cert-manager | Waits for the ClusterIssuer custom resource definition. When CERT_ISSUER is set, it then waits for Flux to create the letsencrypt ClusterIssuer. If the ccf artifact has no cert-issuer Kustomization, it applies the issuer itself. |
| 11 | vault-init | Waits for the ccf-openbao-0 Pod, initializes OpenBao if needed, and writes the root token and the unseal or recovery keys to the initialization files. |
| 12 | vault-unseal | Applies the Shamir keys in manual mode, or waits for the replicas to unseal themselves in auto mode. With VAULT_SEAL_MIGRATE=true, it prints the vault operator unseal -migrate commands for a one-way migration from Shamir keys to the static key. You run the commands yourself. The installer applies no keys. |
| 13 | vault-configure | Enables the executors, pipelines, and ccf-data key-value engines and the Transit engine, and writes the OpenBao policies (including ccf-artifact-tracker, which can only read ccf-data/data/artifacts/*, and taikun-aux-api, which can only read ccf-data/data/aux/*). It creates the Kubernetes authentication backends and roles (including the ccf-artifact-tracker and taikun-aux-api roles). When KUBERNETES_OIDC is true, it also configures the identity token issuer, the signing key, and the ccf-cluster-tokens policy and role, and then publishes the issuer to the cluster-vars ConfigMap. |
Two composite phases run several phases together: vault runs vault-init, vault-unseal, and vault-configure, and all runs all 13 phases in order.
Provisioning phases
When DEPLOY_INFRA is true, the all command first runs the provisioning phases provision-infra, bootstrap-hosts, and install-kubernetes, and then runs the 13 phases in the preceding table. The scale-workers phase is not part of the all command. These phases fail when DEPLOY_INFRA is false, which is the default.
