Skip to content
/ mykube Public

k8s-installer - One-click k8s single-node cluster installation on your own device.

License

Notifications You must be signed in to change notification settings

guyst16/mykube

Repository files navigation

MyKube Logo

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 apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

Run the next commands for deploying k8s single-node cluster installation:

  1. Go to MyKube releases
  2. Download & install the desired release package
  3. Run the next command for creating the cluster:
$ sudo mykube create --domain <NAME>

image

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?

  1. Run git clone:
$ git clone https://github.com/guyst16/mykube.git
$ cd mykube
  1. Run go generate:
$ go generate pkg/embedfiles/util.go
  1. 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:

  1. Necessary directories for mykube are getting created.
  2. A customized OS image downloaded for the virtual machine which the k8s will run above it (if not already downloaded).
  3. A new virtual machine get deployed using cloud-init for automatic k8s installation.
  4. Done!

(Compatibility) OS:

  • ✔️ Linux

  • ⏲️ Mac OS

  • ⏲️ Windows

Feel free to open issues and suggestions