Installation phases
The installer divides the work into idempotent phases that the all command runs in a fixed order.
The installer divides the work into idempotent phases. The following table lists the phases in the order in which the all command runs them:
| 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 the cert-manager namespace. For CERT_ISSUER=ca, it creates the ccf-ca-secret TLS Secret from CA_CERT_FILE and CA_KEY_FILE in the cert-manager namespace. |
| 2 | license | Reads license.txt from the folder that holds bootstrap.env, verifies its PGP signature and validity dates, and stores the file in the ccf-seed-license Secret (key license.txt) in the taikun namespace. The installer stops when 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 the flux-system namespace and the registry-ca-bundle Secret in the cert-manager namespace. |
| 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 the flux-system namespace from the CLUSTER_VAR_ and SMTP variables, including the certificate issuer variables and the Kubernetes OIDC kill switch, and detects an existing Kyverno instance. |
| 6 | cluster-secrets | Creates the taikun-secrets Secret, the pipeline-api-keys Secret, the percona-s3backup-creds Secrets, the Tekton dashboard credentials, the Grafana administrator Secret, and the monitoring storage Secrets, and generates the passwords, cryptographic keys, and tokens that Cloudera Cloud Factory requires. When you set SECRET_OBSERVABILITY_OTLP_AUTHORIZATION, it also creates the observability-otlp-auth Secret and the metering-dbus-credentials Secret. For VAULT_UNSEAL_MODE set to auto, it creates the ccf-openbao-seal Secret. The phase preserves the generated values when you run it again, but 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. The phase is 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. When the ccf artifact has no cert-issuer Kustomization, the phase applies the issuer itself. |
| 11 | vault-init | Waits for the ccf-openbao-0 Pod, initializes OpenBao when it is not yet initialized, and writes the root token with the unseal or recovery keys to the initialization files. |
| 12 | vault-unseal | Applies the Shamir keys from the initialization file 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 the Shamir keys to the static key. You run the commands yourself, because the installer applies no keys. |
| 13 | vault-configure | Enables the executors, pipelines, and ccf-data key-value engines and the Transit engine, writes the OpenBao policies, and creates the Kubernetes authentication backends and 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:
vaultrunsvault-init,vault-unseal, andvault-configure.allruns every phase in the preceding table in order, and is the default command.
Provisioning phases
When DEPLOY_INFRA is true, the all command first runs the following provisioning phases, and then runs the phases in the preceding table:
provision-infracreates the infrastructure with OpenTofu or Terraform.bootstrap-hostsprepares the hosts and configures HAProxy on the bastion.install-kubernetesinstalls Kubernetes and writes the kubeconfig that the later phases use.
These phases and the scale-workers phase fail when DEPLOY_INFRA is false. The scale-workers phase is not part of the all command. Run it separately to add or remove worker nodes, as described in Scaling worker nodes.
