Skip to content

adamhgriffith-uofu/ipv6-virtualbox-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VirtualBox and IPv6 Kubernetes

Tools to create IPv6 K8s with VirtualBox and unique local addresses for workloads.

Requirements

VirtualBox

See Virtual Box for download and installation instructions.

Vagrant

Build and Run

  1. Update the name of the bridged adaptor in the Vagrantfile to match the host.

  2. Copy /<repo-location>/servers.yml.tmpl to /<repo-location>/servers.yml and modify as needed.

    • The first entry will be applied to the control-plane and the remainder to the worker nodes.
    • If a single entry is specified only the control-plane will be created.
    • Important: All entries must be internet routable.
  3. Bring up the virtual machines:

    vagrant up

Initialize K8s Cluster

Initialization is done for you.

  • The host directory /<repo-location>/work is mounted at /vagrant_work on each virtual machine.
  • When the control-plane is created it will generate:
    • /<repo-location>/work/join-config.yml.part
    • /<repo-location>/work/join-config.yml
    • /<repo-location>/admin.conf
  • /<repo-location>/work/join-config.yml will be used by the worker nodes to join the Kubernetes cluster automatically.
  • Currently /<repo-location>/admin.conf exists in a location mounted to all VMs (see #4).

Validate IPv6 Stack

Follow the steps described in Validate IPv4/IPv6 dual-stack.

Teardown

Tearing down the virtual machines is done with a single command:

vagrant destroy -f

After destroying the VMs Vagrant will automatically remove the following files during the housekeeping step:

  • /<repo-location>/work/join-config.yml.part
  • /<repo-location>/work/join-config.yml
  • /<repo-location>/admin.conf

See Vagrant: Destroy for additional information.

References

About

Tools to create IPv6 K8s with VirtualBox.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages