Skip to content

adamhgriffith-uofu/slateci-virtualbox-k8s

Repository files navigation

SLATE, VirtualBox, and Kubernetes

IMPORTANT: This repository requires a read-through of SLATE Cluster Installation beforehand and if you have questions reach out to the team via SLACK, in an email, or during the working-sessions.

Tools to create K8s with VirtualBox via HashiCorp Vagrant and register with SLATE.

Requirements

VirtualBox

See Virtual Box for download and installation instructions.

Vagrant

Tokens

NOTE: All files added to /<repo-location>/secrets/tokens will be ignored by Git so don't worry :).

  • During the build process Vagrant will copy relevant tokens into the master vm.
  • Please copy all required keys below to /<repo-location>/secrets/tokens before building the images.
Name Required Description
slate-cli Yes SLATE CLI token acquired from the SLATE Portal.

Build and Run

Bring up the three virtual machines master, worker1, and worker2:

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 master is created it will create /<repo-location>/work/join.sh.
  • /<repo-location>/work/join.sh will be used by the workers to join the Kubernetes cluster automatically.

SLATE Cluster Federation

SSH into the master node and run the commands described in SLATE: Cluster Federation.

Teardown

Tearing down the virtual machines and clearing the old /<repo-location>/work/join.sh is done with a single command:

vagrant destroy -f

See Vagrant: Destroy for additional information.

References

About

Tools to create K8s with VirtualBox and connect with SLATE.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages