| <a name="input_clusters"></a> [clusters](#input\_clusters) | A list describing clusters workloads to create | <pre>list(<br/> object({<br/> name = string # Name of Cluster<br/> vpc_name = string # Name of VPC<br/> subnet_names = list(string) # List of vpc subnets for cluster<br/> workers_per_subnet = number # Worker nodes per subnet.<br/> machine_type = string # Worker node flavor<br/> kube_type = string # iks or openshift<br/> kube_version = optional(string) # Can be a version from `ibmcloud ks versions` or `default`<br/> entitlement = optional(string) # entitlement option for openshift<br/> secondary_storage = optional(string) # Secondary storage type<br/> pod_subnet = optional(string) # Portable subnet for pods<br/> service_subnet = optional(string) # Portable subnet for services<br/> resource_group = string # Resource Group used for cluster<br/> cos_name = optional(string) # Name of COS instance Required only for OpenShift clusters<br/> access_tags = optional(list(string), [])<br/> boot_volume_crk_name = optional(string) # Boot volume encryption key name<br/> disable_public_endpoint = optional(bool, true) # disable cluster public, leaving only private endpoint<br/> disable_outbound_traffic_protection = optional(bool, false) # public outbound access from the cluster workers<br/> cluster_force_delete_storage = optional(bool, false) # force the removal of persistent storage associated with the cluster during cluster deletion<br/> operating_system = string # The operating system of the workers in the default worker pool. See https://cloud.ibm.com/docs/openshift?topic=openshift-openshift_versions#openshift_versions_available .<br/> kms_wait_for_apply = optional(bool, true) # make terraform wait until KMS is applied to master and it is ready and deployed<br/> verify_cluster_network_readiness = optional(bool, true) # Flag to run a script will run kubectl commands to verify that all worker nodes can communicate successfully with the master. If the runtime does not have access to the kube cluster to run kubectl commands, this should be set to false.<br/> use_ibm_cloud_private_api_endpoints = optional(bool, true) # Flag to force all cluster related api calls to use the IBM Cloud private endpoints.<br/> allow_default_worker_pool_replacement = optional(bool) # (Advanced users) Set to true to allow the module to recreate a default worker pool. If you wish to make any change to the default worker pool which requires the re-creation of the default pool follow these [steps](https://github.com/terraform-ibm-modules/terraform-ibm-base-ocp-vpc?tab=readme-ov-file#important-considerations-for-terraform-and-default-worker-pool).<br/> labels = optional(map(string)) # A list of labels that you want to add to the default worker pool.<br/> enable_ocp_console = optional(bool) # Flag to specify whether to enable or disable the OpenShift console. If set to `null` the module will not modify the setting currently set on the cluster. Bare in mind when setting this to `true` or `false` on a cluster with private only endpoint enabled, the runtime must be able to access the private endpoint.<br/> addons = optional(object({ # Map of OCP cluster add-on versions to install<br/> debug-tool = optional(string)<br/> image-key-synchronizer = optional(string)<br/> openshift-data-foundation = optional(string)<br/> vpc-file-csi-driver = optional(string)<br/> static-route = optional(string)<br/> cluster-autoscaler = optional(string)<br/> vpc-block-csi-driver = optional(string)<br/> ibm-storage-operator = optional(string)<br/> }), {})<br/> manage_all_addons = optional(bool, false) # Instructs Terraform to manage all cluster addons, even if addons were installed outside of the module. If set to 'true' this module will destroy any addons that were installed by other sources.<br/> kms_config = optional(<br/> object({<br/> crk_name = string # Name of key<br/> private_endpoint = optional(bool) # Private endpoint<br/> })<br/> )<br/> worker_pools = optional(<br/> list(<br/> object({<br/> name = string # Worker pool name<br/> vpc_name = string # VPC name<br/> workers_per_subnet = number # Worker nodes per subnet<br/> flavor = string # Worker node flavor<br/> subnet_names = list(string) # List of vpc subnets for worker pool<br/> entitlement = optional(string) # entitlement option for openshift<br/> secondary_storage = optional(string) # Secondary storage type<br/> boot_volume_crk_name = optional(string) # Boot volume encryption key name<br/> operating_system = string # The operating system of the workers in the worker pool. See https://cloud.ibm.com/docs/openshift?topic=openshift-openshift_versions#openshift_versions_available .<br/> labels = optional(map(string)) # A list of labels that you want to add to all the worker nodes in the worker pool.<br/> })<br/> )<br/> )<br/> })<br/> )</pre> | n/a | yes |
0 commit comments