Simple template to deploy an IBM Cloud Kubernetes cluster
- Download Terraform binary. Unzip it and keep the binary in path ex- /usr/local/bin.
- Download IBM Cloud Provider Plugin. Unzip it and keep the binary in path in the same directory where you placed Terraform binary in previous step. You can also build the binary yourself. Please look into documentation.
-
Clone this project.
-
You can override default values that are in your variables.tf file.
- Alternatively these values can be supplied via the command line or environment variables, see https://www.terraform.io/intro/getting-started/variables.html.
You'll need to export the following environment variables:
TF_VAR_ibmcloud_api_key
- your IBM Cloud api key
On OS X this is achieved by entering the following into your terminal, replacing the <value>
characters with the actual values (remove the <>
:
export TF_VAR_ibmcloud_api_key=<value>
Variable Name | Description | Default Value |
---|---|---|
machine_type | The type of the machine flavor | b2c.8x32 |
hardware | The level of hardware isolation for your worker node | shared |
datacenter | The datacenter to provision cluster | wdc07 |
default_pool_size | No of workers in default pool | 3 |
private_vlan_id | The private vlan ID. Run ic ks vlans datacenter to retrieve vlans |
|
public_vlan_id | The public vlan ID.Run ic ks vlans datacenter to retrieve vlans |
|
kube_version | The desired Kubernetes version of the created cluster. Run ic ks kube-versions to get latest verions. | 1.14.6 |