This terraform will
- create security group with inbound/outbound rules to allow internal security group communication and pod subnet (
podnet
) (default: 192.168.0.0/16). - add daemon port (default:
11000
) rule to security group in main interface - create subnets upto the number specified in
subnet_num
. - attach created subnets to vsi listed in
worker_names
.
- Install terraform version
>= 0.1.3
- Move to provider folder. For example,
cd ibmcloud
- Modify
terraform.tfvars.template
, then copy to.tfvars
filecp terraform.tfvars.template terraform.tfvars
- Init terraform
terraform init
- Initailly apply with required target (subnets)
terraform apply -var-file=terraform.tfvars -target="ibm_is_subnet.subnets"
- Apply all targets
terraform apply -var-file=terraform.tfvars