-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ryan Tiffany edited this page Jul 20, 2023
·
1 revision
Welcome to the microk8s-ibmcloud-vpc wiki!
Here you will find instructions for running this code locally, or in a non-IBM Cloud Shell environment.
- Recent version of Terraform installed. This guide was tested on
terraform 1.5.3. - IBM Cloud API Key. If you do not have a key, you can follow this guide to create one.
- A recent version of [Ansible] installed. This guide was tested on
ansible 2.15.2. -
(Optional)- [tfswitch] installed. Thetfswitchutility allows you to run multiple versions of Terraform on the same system. If you do not have a particular version of terraform installed, tfswitch will download the version you select from an interactive menu.
With the pre-req sorted, it is time to deploy the cluster.
-
Clone this repo and
cdinto themicrok8s-ibmcloud-vpcdirectory.git clone https://github.com/cloud-design-dev/microk8s-ibmcloud-vpc.git cd microk8s-ibmcloud-vpc -
Copy the
tfvars-exampletoterraform.tfvarsfile and update the values as needed. See here for full list of variables.cp tfvars-example terraform.tfvars
-
Initialize Terraform:
terraform init -upgrade
-
Run a Terraform plan:
terraform plan -out "$(terraform workspace show).tfplan" -
Run Terraform apply:
terraform apply "$(terraform workspace show).tfplan"
