All the dependencies are included, which means there are no previous steps that need to be taken.
Install Libvirt
For RPM OS:
$ sudo yum install qemu-kvm libvirt python3-libvirt libvirt-client bridge-utils
For DEB OS:
$ sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
Run the next commands for deploying k8s single-node cluster installation:
- Go to MyKube releases
- Download & install the desired release package
- Run the next command for creating the cluster:
$ sudo mykube create --domain <NAME>
And you done.
Ask for help:
$ mykube --help
Run the next command:
$ sudo mykube delete --domain <NAME>
Run the command:
$ sudo mykube connect --domain <NAME>
- Run git clone:
$ git clone https://github.com/guyst16/mykube.git
$ cd mykube
- Run go generate:
$ go generate pkg/embedfiles/util.go
- Build:
$ go build
Done! Now you have a mykube
binary file.
The Mykube procedure for creating new working K8S cluster is very simple, here are the steps:
- Necessary directories for mykube are getting created.
- A customized OS image downloaded for the virtual machine which the k8s will run above it (if not already downloaded).
- A new virtual machine get deployed using cloud-init for automatic k8s installation.
- Done!