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:

  1. provision-infra creates the servers, the network, and the bastion with OpenTofu or Terraform.
  2. bootstrap-hosts prepares the hosts and configures HAProxy on the bastion, which forwards port 6443 to the control plane.
  3. install-kubernetes installs 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:

Table 1. Provisioning variables
VariableDescriptionMandatoryDefault
DEPLOY_INFRAEnables 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.Nofalse
INFRA_CLOUD_CREDENTIALS_FILEReferences 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 trueNone
INFRA_INVENTORYOverrides 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_KUBECONFIGSpecifies 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_PROVIDERSpecifies 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.Noopenstack
INFRA_TERRAFORM_VARS_FILEOverrides 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.NoNone
INFRA_WORK_DIRSpecifies 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.

Table 2. Source variables
VariableDescriptionMandatoryDefault
INFRA_BOOTSTRAP_PATHReferences a local checkout of the taikun-bootstrap repository.Yes, unless the installer pulls the sourcesNone
INFRA_BOOTSTRAP_TAGSpecifies the tag of the taikun-bootstrap artifact that the installer pulls from the registry. Set the three INFRA_*_TAG source variables together.NoFrom the flux-latest artifact
INFRA_KUBEVAP_BINARIES_TAGSpecifies 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 checkoutsFrom the flux-latest artifact
INFRA_KUBEVAP_PATHReferences a local checkout of the taikun-kubevap repository.Yes, unless the installer pulls the sourcesNone
INFRA_KUBEVAP_TAGSpecifies the tag of the taikun-kubevap artifact that the installer pulls from the registry. Set the three INFRA_*_TAG source variables together.NoFrom the flux-latest artifact
INFRA_TERRAFORM_TEMPLATES_PATHReferences a local checkout of the taikun-terraform-templates repository.Yes, unless the installer pulls the sourcesNone
INFRA_TERRAFORM_TEMPLATES_TAGSpecifies the tag of the taikun-terraform-templates artifact that the installer pulls from the registry. Set the three INFRA_*_TAG source variables together.NoFrom 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.

Table 3. Cluster variables
VariableDescriptionMandatoryDefault
INFRA_BASTION_FLAVORSpecifies 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.NoThe value of INFRA_CONTROL_PLANE_FLAVOR
INFRA_CIDRSpecifies the CIDR of the network that the installer creates. This variable applies only to Cloudera Cloud Core.Yes, for Cloudera Cloud CoreNone
INFRA_CLUSTER_NAMESpecifies the name of the Kubernetes cluster. On Compute Engine, use lowercase letters, digits, and hyphens, and start with a letter.Noccf-cluster
INFRA_CONTROL_PLANE_COUNTSpecifies 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.No1
INFRA_CONTROL_PLANE_DISK_SIZESpecifies the disk size of each control plane node and of the bastion, in GB. On AWS and Compute Engine, use a whole number.No50
INFRA_CONTROL_PLANE_FLAVORSpecifies the flavor (Cloudera Cloud Core), instance type (AWS), machine type (Compute Engine), or VM size (Azure) of the control plane nodes.YesNone
INFRA_IMAGE_IDSpecifies 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 CorePinned Ubuntu 26.04 image on AWS, Compute Engine, and Azure
INFRA_KUBERNETES_NETWORK_PLUGINSpecifies the Kubernetes Container Network Interface (CNI) plugin. Valid values: calico, cilium.Nocalico
INFRA_KUBERNETES_VERSIONSpecifies 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.Nov1.36.6
INFRA_PUBLIC_NETWORKSpecifies 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.Nopublic
INFRA_SSH_PRIVATE_KEY_PATHReferences the private SSH key file that the installer uses to reach the hosts.YesNone
INFRA_SSH_PUBLIC_KEY_PATHReferences the public SSH key file that the installer places on the hosts.YesNone
INFRA_SUBNET_IDSpecifies 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.NoNone
INFRA_VOLUME_TYPESpecifies the Cloudera Cloud Core volume type or the AWS EBS volume type. When you leave the value empty on AWS, the templates use gp3.NoNone
INFRA_WORKER_COUNTSpecifies the number of worker nodes. To change the number on a running cluster, edit this variable and run the scale-workers phase.No1
INFRA_WORKER_DISK_SIZESpecifies the disk size of each worker node, in GB. On AWS and Compute Engine, use a whole number.No100
INFRA_WORKER_FLAVORSpecifies the flavor (Cloudera Cloud Core), instance type (AWS), machine type (Compute Engine), or VM size (Azure) of the worker nodes.YesNone

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=""