A Proof-of-concept for using K3s to create a Kubernetes cluster deployed on nodes from different public cloud providers (AWS, GCP, Azure) utilizing Kilo
What’s possible with that?
# create RSA key
ssh-keygen -b 4096 -t rsa -f ~/.ssh/cloud-key
Copy the contents of the public key ~/.ssh/cloud-key.pub
into .auto.tfvars
as public_ssh_key
(see .auto.tfvars.example
). Terraform will automatically pick up this file.
You can also overwrite as follows
-var
option: terraform apply -var="public_ssh_key=..."
export TF_VAR_public_ssh_key="..."
# init, plan, and apply infrastructure
# use `-target=module.gcp_us_central1` to target specific modules
terraform init
terraform plan
terraform apply
# show resources and details
terraform output
terraform state list
terraform state show module.aws_us_east_1.aws_instance.node
# destroy infrastructure
terraform destroy
location
and force-endpoint
in order to make kilo aware of the topology