-
Notifications
You must be signed in to change notification settings - Fork 4
1. Deploying Kubernetes Using Terraform
Steven Platt edited this page Oct 9, 2021
·
3 revisions
Terraform is used to deploy cloud infrastructure for the Kubernetes cluster. To deploy teh Kubernetes cluster, Terraform must be installed to your local machine (source 1) (source 2).
- Install the terraform cli.
Terraform install instructions
- Clone the homelab repository.
git clone https://github.com/stevenplatt/homelab.git && cd homelab/terraform/
- Initialize Terraform within the repository directory.
terraform init
- Double-check the planned infrastructure changes.
terraform plan
- Assuming everything looks correct, launch the infrastructure deployment.
terraform deploy
Terraform will request the Digital Ocean API token (it must have read/write priveledges), and to confirm yes
a final time to apply the change.
Note: Using terraform destroy
from the same directory will delete the infrastructure that was launched using terraform deploy
.
Copyright 2021 Telecom Steve