Skip to content

Latest commit

 

History

History

terraform

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Terraform for multi-nic infrastructure

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.

Steps

  1. Install terraform version >= 0.1.3
  2. Move to provider folder. For example,
    cd ibmcloud
  3. Modify terraform.tfvars.template, then copy to .tfvars file
    cp terraform.tfvars.template terraform.tfvars
  4. Init terraform
    terraform init
  5. Initailly apply with required target (subnets)
    terraform apply -var-file=terraform.tfvars -target="ibm_is_subnet.subnets"
  6. Apply all targets
    terraform apply -var-file=terraform.tfvars