k8s-installer - One-click k8s single-node cluster installation on your own device.
MyKube is a new easy-to-use open source tool for creating your own virtual machine with k8s installed only by one click.
All the dependencies are included, which means there are no previous steps that need to be taken.
How to Use
Prerequisites
Install Libvirt
For RPM OS:
$ sudo yum install qemu-kvm libvirt python3-libvirt libvirt-client bridge-utils
For DEB OS:
$ sudo 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.
Need some help?
Ask for help:
$ mykube --help
Destroy vm
Run the next command:
$ sudo mykube delete --domain <NAME>
Get connection details
Run the command:
$ sudo mykube connect --domain <NAME>
How to build?
- 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.
So how does it work?
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!
(Compatibility) OS:
Feel free to open issues and suggestions