Local Kubernetes provisioning variables
Set DEPLOY_INFRA and the INFRA_ variables to make the installer create the infrastructure and the Kubernetes cluster with OpenTofu or Terraform, Ansible, and a local state.
Provisioning modes
The installer supports the following provisioning modes, which DEPLOY_INFRA selects:
DEPLOY_INFRA=false: You provide the cluster. Export KUBECONFIG in the usual kubectl way, and the installer performs no infrastructure work.DEPLOY_INFRA=true: The installer creates the infrastructure and the Kubernetes cluster, and it requires no kubeconfig at the start.
The provisioning phases and the scale-workers phase fail when DEPLOY_INFRA is false. The installer does not require the Terraform templates, the bootstrap playbooks, or the Kubernetes installation playbooks to be packaged as container images, because it runs them from local checkouts or from artifacts that it pulls from the registry.
Phase order
When DEPLOY_INFRA is true, the all command runs the following provisioning phases before the installation phases:
provision-infracreates the servers, the network, and the bastion with OpenTofu or Terraform.bootstrap-hostsprepares the hosts and configures HAProxy on the bastion, which forwards port6443to the control plane.install-kubernetesinstalls Kubernetes and writes the kubeconfig that every later phase uses.
The installation phases follow, starting with prepare. You can also run each provisioning phase separately with the --phase option.
Provisioning variables
The following table lists the variables that select the provisioning mode, the cloud provider, and the locations of the state and the kubeconfig:
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| DEPLOY_INFRA | Enables or disables creating the infrastructure and the Kubernetes cluster. Set this variable to true to run the provisioning phases before the installation phases. Valid values: true, false. | No | false |
| INFRA_CLOUD_CREDENTIALS_FILE | References the file that holds the credentials of the cloud provider, relative to the working folder. The preflight checks fail when the value is empty or the file does not exist. Never store credentials in bootstrap.env. | Yes, when DEPLOY_INFRA is true | None |
| INFRA_INVENTORY | Overrides the Ansible inventory file that the bootstrap-hosts and install-kubernetes phases use. A relative path resolves against the working folder. | No | <INFRA_WORK_DIR>/kubevap/hosts.yml |
| INFRA_KUBECONFIG | Specifies the path of the kubeconfig that the install-kubernetes phase writes and that every later phase uses. The server in this file is the floating IP address of the bastion, in the format https://<access_ip>:6443, and HAProxy on the bastion forwards the connection to the control plane. | No | <INFRA_WORK_DIR>/kubeconfig |
| INFRA_TERRAFORM_PROVIDER | Specifies the cloud provider. The value selects the Terraform template directory and is passed to the Kubernetes installation as the cloud provider. Valid values: openstack, aws, gce, azure. | No | openstack |
| INFRA_TERRAFORM_VARS_FILE | Overrides the generated Terraform variables with a provider-specific variables file. When the value is empty, the installer generates <INFRA_WORK_DIR>/terraform.tfvars.json from the INFRA_ variables. Leave this variable empty to use the scale-workers phase. | No | None |
| INFRA_WORK_DIR | Specifies the folder that holds the local Terraform or OpenTofu state, the generated variables, and the runtime files of the deployment. A relative path resolves against the working folder. | No | .kubernetes-install |
Source variables
The installer runs the Terraform templates, the bootstrap playbooks, and the Kubernetes installation playbooks from three sources. Set the three INFRA_*_PATH variables together to use local checkouts. When you leave all three paths empty, the installer pulls the sources from the registry that REGISTRY_SERVER names, and it authenticates with REGISTRY_USERNAME and REGISTRY_PASSWORD when you set them. Explicit paths take precedence over tags.
When you leave a tag empty, the installer reads it from versions/taikun.yaml in the flux-latest artifact, so that the infrastructure artifacts match the Cloudera Cloud Factory release. A tag in bootstrap.env overrides the artifact. If the artifact names a tag that is lower than the minimum that the installer supports, the installer raises the tag to the minimum and reports it. The minimum tags are 2.0.0-b.7 for the Terraform templates, 2.0.0-b.3 for the bootstrap playbooks, and 2.0.0-b.49 for the Kubernetes installation playbooks.
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| INFRA_BOOTSTRAP_PATH | References a local checkout of the taikun-bootstrap repository. | Yes, unless the installer pulls the sources | None |
| INFRA_BOOTSTRAP_TAG | Specifies the tag of the taikun-bootstrap artifact that the installer pulls from the registry. Set the three INFRA_*_TAG source variables together. | No | From the flux-latest artifact |
| INFRA_KUBEVAP_BINARIES_TAG | Specifies the release part of the tag of the Kubernetes binaries bundle. The installation pulls taikun-kubevap-binaries:k8s<INFRA_KUBERNETES_VERSION>-<value>, for example k8sv1.36.6-2.0.0-b.5. The bundle must exist for the Kubernetes version that you select. | Yes, when you use local checkouts | From the flux-latest artifact |
| INFRA_KUBEVAP_PATH | References a local checkout of the taikun-kubevap repository. | Yes, unless the installer pulls the sources | None |
| INFRA_KUBEVAP_TAG | Specifies the tag of the taikun-kubevap artifact that the installer pulls from the registry. Set the three INFRA_*_TAG source variables together. | No | From the flux-latest artifact |
| INFRA_TERRAFORM_TEMPLATES_PATH | References a local checkout of the taikun-terraform-templates repository. | Yes, unless the installer pulls the sources | None |
| INFRA_TERRAFORM_TEMPLATES_TAG | Specifies the tag of the taikun-terraform-templates artifact that the installer pulls from the registry. Set the three INFRA_*_TAG source variables together. | No | From the flux-latest artifact |
Cluster variables
The installer generates the Terraform variables from the following variables when INFRA_TERRAFORM_VARS_FILE is empty. The variables for the existing network of each provider are described in Cloud provider provisioning variables.
| Variable | Description | Mandatory | Default |
|---|---|---|---|
| INFRA_BASTION_FLAVOR | Specifies the flavor (Cloudera Cloud Core), instance type (AWS), machine type (Compute Engine), or VM size (Azure) of the bastion. The bastion uses the disk size of the control plane. | No | The value of INFRA_CONTROL_PLANE_FLAVOR |
| INFRA_CIDR | Specifies the CIDR of the network that the installer creates. This variable applies only to Cloudera Cloud Core. | Yes, for Cloudera Cloud Core | None |
| INFRA_CLUSTER_NAME | Specifies the name of the Kubernetes cluster. On Compute Engine, use lowercase letters, digits, and hyphens, and start with a letter. | No | ccf-cluster |
| INFRA_CONTROL_PLANE_COUNT | Specifies the number of control plane nodes. The value must be at least 1. Every cluster gets exactly one bastion, which holds the floating IP address. | No | 1 |
| INFRA_CONTROL_PLANE_DISK_SIZE | Specifies the disk size of each control plane node and of the bastion, in GB. On AWS and Compute Engine, use a whole number. | No | 50 |
| INFRA_CONTROL_PLANE_FLAVOR | Specifies the flavor (Cloudera Cloud Core), instance type (AWS), machine type (Compute Engine), or VM size (Azure) of the control plane nodes. | Yes | None |
| INFRA_IMAGE_ID | Specifies the operating system image. On Cloudera Cloud Core, set the image ID. On AWS, set the name of an AMI that Canonical owns, not the ami- ID. On Compute Engine, set the image. On Azure, set the marketplace path. When you leave the value empty on AWS, Compute Engine, or Azure, the installer uses a pinned Ubuntu 26.04 image. | Yes, for Cloudera Cloud Core | Pinned Ubuntu 26.04 image on AWS, Compute Engine, and Azure |
| INFRA_KUBERNETES_NETWORK_PLUGIN | Specifies the Kubernetes Container Network Interface (CNI) plugin. Valid values: calico, cilium. | No | calico |
| INFRA_KUBERNETES_VERSION | Specifies the Kubernetes version that the installer passes to the Kubernetes installation. A Kubernetes binaries bundle must exist for this version. Supported versions: 1.36 and higher. | No | v1.36.6 |
| INFRA_PUBLIC_NETWORK | Specifies the Cloudera Cloud Core external network from which the installer allocates the floating IP address of the bastion. This variable applies only to Cloudera Cloud Core. | No | public |
| INFRA_SSH_PRIVATE_KEY_PATH | References the private SSH key file that the installer uses to reach the hosts. | Yes | None |
| INFRA_SSH_PUBLIC_KEY_PATH | References the public SSH key file that the installer places on the hosts. | Yes | None |
| INFRA_SUBNET_ID | Specifies a legacy Terraform input for Cloudera Cloud Core. The current Cloudera Cloud Core template creates the management subnet, so you can leave this variable empty. | No | None |
| INFRA_VOLUME_TYPE | Specifies the Cloudera Cloud Core volume type or the AWS EBS volume type. When you leave the value empty on AWS, the templates use gp3. | No | None |
| INFRA_WORKER_COUNT | Specifies the number of worker nodes. To change the number on a running cluster, edit this variable and run the scale-workers phase. | No | 1 |
| INFRA_WORKER_DISK_SIZE | Specifies the disk size of each worker node, in GB. On AWS and Compute Engine, use a whole number. | No | 100 |
| INFRA_WORKER_FLAVOR | Specifies the flavor (Cloudera Cloud Core), instance type (AWS), machine type (Compute Engine), or VM size (Azure) of the worker nodes. | Yes | None |
Local state and generated variables
The installer keeps the Terraform or OpenTofu state locally in INFRA_WORK_DIR. Before each run, it copies the selected provider templates to <INFRA_WORK_DIR>/terraform/<INFRA_TERRAFORM_PROVIDER> and replaces only the copied backend definition with a local backend, so the shared templates are not modified.
When INFRA_TERRAFORM_VARS_FILE is empty, the installer generates the JSON variables file <INFRA_WORK_DIR>/terraform.tfvars.json for the selected provider from the INFRA_ variables. An explicit variables file remains available as a provider-specific override. The generated file includes the private SSH key, so protect the file and the work folder.
Cloudera Cloud Core network behavior
On Cloudera Cloud Core, the installer uses INFRA_CIDR to create a new management subnet, so you do not need an existing subnet ID. The installer allocates the floating IP address for the bastion from the external network that INFRA_PUBLIC_NETWORK names, which is public unless you change it. On AWS, Compute Engine, and Azure, the installer always uses an existing network.
Recommended work folder layout
To keep the generated and the runtime files in the working folder, set the following values in bootstrap.env:
INFRA_WORK_DIR=".kubernetes-install"
INFRA_KUBECONFIG=".kubernetes-install/kubeconfig"
INFRA_TERRAFORM_VARS_FILE=""