Create downstream clusters for import/registration using Terraform
- terraform
- helm
- jq
- kubectl
- aws
- URL for Rancher instance
cp terraform-setup/terraform.tfvars.template terraform-setup/terraform.tfvars
- Adjust the tfvars variables as desired
- Set your aws account id and key using the terraform variables
aws_access_key_id
aws_secret_access_key
- See
variables.tf
for other infrastructure configuration
make DOWNSTREAM_COUNT=3 infrastructure
# create 3 downstream instances
infrastructure
- build the infrastructure needed to host k3s clustersk3s_install
-- Single node clusters only
- Not HA
destroy
- destroy the infrastructureinstall_kubeconfig
- run afterk3s_install
target. WARNING THIS WILL OVERWRITE YOUR LOCAL.kube/config
backup_kubeconfig
- backup your local.kube/config
before overwriting it withinstall_kubeconfig