Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.
/ vsphere-k8s Public archive

Automating the deployment of vanilla Kubernetes clusters on vSphere with Packer and Terraform

License

Notifications You must be signed in to change notification settings

jbowdre/vsphere-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanilla Kubernetes on VMware vSphere

Prerequisites

  1. Packer installed on your system
  2. Account in vSphere with appropriate privileges
  3. Ubuntu Server 20.04 installation ISO copied to a vSphere datastore

Packer

  1. cd packer.
  2. Copy ubuntu-k8s.example.pkrvars.hcl to ubuntu-k8s.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.

About

Automating the deployment of vanilla Kubernetes clusters on vSphere with Packer and Terraform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published