Automating the deployment of vanilla Kubernetes clusters on vSphere with Packer and Terraform
Find a file
2022-12-05 09:54:41 -06:00
packer script cleanup 2022-12-05 09:54:41 -06:00
terraform Update join-workers.sh 2022-12-02 15:34:39 -06:00
.gitignore initial commit 2022-12-02 15:32:50 -06:00
LICENSE initial commit 2022-12-02 15:32:50 -06:00
README.md update README 2022-12-02 17:04:00 -06:00

Vanilla Kubernetes on VMware vSphere

Packer

  1. cd packer.
  2. Copy linux-server.example.pkrvars.hcl to linux-server.auto.pkrvars.hcl and update it as appropriate for your environment.
  3. Put the SSH private key which corresponds to the build_key variable in packer_cache/ssh_private_key_packer.pem.
  4. Place any needed internal CA PEM-formatted certs (with .cer file extension) in certs/.
  5. Run it with packer build -on-error=abort -force ..

Terraform

  1. cd terraform.
  2. Copy terraform.example.tfvars to terraform.auto.tfvars and update it as appropriate for your environment.
  3. Initialize Terraform: terraform init.
  4. Create the deployment with terraform apply.