Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.29 KB

File metadata and controls

45 lines (34 loc) · 1.29 KB

Kubernetes 1.12.2 with multus network plugin in ephemeral containers

Provides a pre-deployed Kubernetes with version 1.12.2 purely in docker containers with qemu. The provided VMs are completely ephemeral and are recreated on every cluster restart. The MACPOOL containers are built on the local machine and are the pushed to a registry which is exposed at localhost:5000.

Bringing the cluster up

export MACPOOL_PROVIDER=k8s-multus-1.12.2
export MACPOOL_NUM_NODES=2 # master + one node
make cluster-up

The cluster can be accessed as usual:

$ cluster/kubectl.sh get nodes
NAME      STATUS     ROLES     AGE       VERSION
node01    NotReady   master    31s       v1.12.2
node02    NotReady   <none>    5s        v1.12.2

Bringing the cluster down

export MACPOOL_PROVIDER=k8s-multus-1.12.2
make cluster-down

This destroys the whole cluster. Recreating the cluster is fast, since k8s is already pre-deployed. The only state which is kept is the state of the local docker registry.

Destroying the docker registry state

The docker registry survives a make cluster-down. It's state is stored in a docker volume called MACPOOL_registry. If the volume gets too big or the volume contains corrupt data, it can be deleted with

docker volume rm MACPOOL_registry