Create & destroy a small Kubernetes cluster via Multipass.
- PC with Internet connection, enough memory and disk space. (Seriously!!!)
- Multipass
- Clone this repo.
- Execute
./k8sctl [create <version>|start|stop|restart|destroy]
to create/start/stop/restart/destroy the cluster which has 1 control plane and 2 nodes by default. - (Option)You can excute
./k8sctl check
to check all nodes and pods are ready. - (Option)You can excute
./k8sctl status
to check cluster status. - You can login the control plane node by
./k8sctl login
. Ormultipass shell
with instance name likek8s-control-plane
,k8s-node-1
.