iks-vpc
cloud-native-toolkit/iks-vpc/ibm
Module to provision an IBM Cloud IKS cluster on VPC
IBM Cloud Kubernetes VPC cluster Provisions an IBM Cloud Kubernetes VPC cluster using a provided VPC instance. Software dependencies The module depends on the following software components: Command-line tools - terraform - v13 - kubectl Terraform providers - IBM Cloud provider >= 1.18 - Helm provider >= 1.1.1 (provided by Terraform) Module dependencies This module makes use of the output from other modules: - VPC - github.com/cloud-native-toolkit/terraform-ibm-vpc.git - Subnet - github.com/cloud-native-toolkit/terraform-ibm-vpc.git Example usage ``hcl-terraform module "cluster" { source = "github.com/cloud-native-toolkit/terraform-ibm-iks-vpc.git" resource_group_name = var.resource_group_name region = var.region ibmcloud_api_key = var.ibmcloud_api_key name = var.cluster_name worker_count =
| Name | Type | Description | Default |
|---|---|---|---|
| vpc_subnets | list(object({ label = stri | List of subnets with labels | null |
| kms_key_id | string | The id of the root key in the KMS instance that will be used to encrypt the clus | null |
| kms_private_endpoint | bool | Flag indicating that the private endpoint should be used to connect the KMS syst | true |
| region | string | The IBM Cloud region where the cluster will be/has been installed. | null |
| worker_count | number | The number of worker nodes that should be provisioned for classic infrastructure | 3 |
| flavor | string | The machine type that will be provisioned for classic infrastructure | "bx2.4x16" |
| vpc_name | string | Name of the VPC instance that will be used | null |
| vpc_subnet_count | number | Number of vpc subnets | null |
| sync | string | Value used to order dependencies | "" |
| exists | bool | Flag indicating if the cluster already exists (true or false) | false |
| disable_public_endpoint | bool | Flag indicating that the public endpoint should be disabled | false |
| name_prefix | string | The prefix name for the service. If not provided it will default to the resource | "" |
| kms_enabled | bool | Flag indicating that kms encryption should be enabled for this cluster | false |
| resource_group_name | string | The name of the IBM Cloud resource group where the cluster will be created/can b | null |
| ibmcloud_api_key | string | The IBM Cloud api token | null |
| name | string | The name of the cluster that will be created within the resource group | "" |
| kms_id | string | The crn of the KMS instance that will be used to encrypt the cluster. | null |
| login | bool | Flag indicating that after the cluster is provisioned, the module should log int | false |
name — Name of the cluster.resource_group_name — Name of the resource group containing the cluster.region — Region containing the cluster.config_file_path — Path to the config file for the cluster.platform — Configuration values for the cluster platformsync — Value used to sync downstream modulesid — ID of the cluster.