container-platform

cloud-native-toolkit/container-platform/ibm

Terraform Module HCL IBM

Terraform module to create or connect to a IBM Cloud cluster

Install
module "container-platform" {
source = "cloud-native-toolkit/container-platform/ibm"
version = "1.21.1"
}
plain text: /constructs/tfmod-cloud-native-toolkit-container-platform-ibm/install.txt
⭐ Source on GitHub 📦 Registry page
README

IBM Cloud Cluster Module This module interacts with a kubernetes cluster on IBM Cloud public. It can be used to create a new cluster or to connect with an existing cluster. When creating a new cluster, the type can be set to either kubernetes or openshift. Note: This module follows the Terraform conventions regarding how provider configuration is defined within the Terraform template and passed into the module - https://www.terraform.io/docs/language/modules/develop/providers.html. The default provider configuration flows through to the module. If different configuration is required for a module, it can be explicitly passed in the providers block of the module - https://www.terraform.io/docs/language/modules/develop/providers.html#passing-providers-explicitly. Pre-requisites This module ha

Inputs (21)
NameTypeDescriptionDefault
cluster_typestringThe type of cluster that should be created (openshift or ocp3 or ocp4 or kuberne required
cluster_namestringThe name of the cluster that will be created within the resource group required
cluster_regionstringThe IBM Cloud region where the cluster will be/has been installed. required
resource_group_namestringThe name of the IBM Cloud resource group where the cluster will be created/can b required
ibmcloud_api_keystringThe IBM Cloud api token required
cluster_existsboolFlag indicating if the cluster already exists (true or false) required
public_vlan_idstring(Deprecated, use VPC) The public vlan id that should be used for classic infrast""
is_vpcboolFlag indicating that the cluster uses vpc infrastructurefalse
private_vlan_idstring(Deprecated, use VPC) The private vlan id that should be used for classic infras""
vpc_zone_countnumberNumber of vpc zones0
login_userstringThe username to log in to openshift"apikey"
ocp_entitlementstringValue that is applied to the entitlements for OCP cluster provisioning"cloud_pak"
gitops_dirstringDirectory where the gitops repo content should be written""
cluster_hardwarestringThe type of hardware for the cluster (shared, dedicated)"shared"
cos_namestring(optional) The name of the cos instance that will be used for the OCP 4 vpc inst""
provision_cosboolFlag indicating that the cos instance should be provisioned, if necessarytrue
cluster_worker_countnumberThe number of worker nodes that should be provisioned for classic infrastructure3
vlan_datacenterstring(Deprecated, use VPC) The datacenter that should be used for classic infrastruct""
name_prefixstringThe prefix name for the service. If not provided it will default to the resource""
cluster_machine_typestring(Deprecated, use VPC) The machine type that will be provisioned for classic infr"b3c.4x16"
flavorstring(Deprecated, use VPC) The machine type that will be provisioned for classic infr"b3c.4x16"
Outputs (15)
ingress_hostname — (Deprecated) Ingress hostname of the cluster.
config_file_path — (Deprecated) Path to the config file for the cluster.
login_user — (Deprecated) The username used to log into the openshift cli
login_password — (Deprecated) The password used to log into the openshift cli
tag — The tag based on the cluster type
id — ID of the cluster.
resource_group_name — Name of the resource group containing the cluster.
name — Name of the cluster.
region — Region containing the cluster.
server_url — The url of the control server.
version — (Deprecated, use platform.version) The point release version number of cluster (3.11 or 4.3 or 1.16)
tls_secret_name — (Deprecated) The name of the secret containin the tls information for the cluster
type — (Deprecated, use platform.type) The type of cluster (openshift or ocp4 or ocp3 or kubernetes)
type_code — (Deprecated, use platform.type_code) The type of cluster (openshift or ocp4 or ocp3 or kubernetes)
platform — Configuration values for the cluster platform
Resources (11)
helm_releaseibm_container_clusteribm_container_vpc_clusteribm_container_vpc_worker_poolibm_is_public_gatewayibm_is_security_group_ruleibm_is_subnetibm_is_vpcibm_resource_instancelocal_filenull_resource
Details
FrameworkTerraform Module
LanguageHCL
Version1.21.1
Cloud IBM
★ Stars1
Forks2
Total downloads113
Inputs21
Outputs15
Resources11
LicenseApache-2.0
Namespacecloud-native-toolkit
Updated