|
| 1 | +# Install Minikube for Local Development |
| 2 | + |
| 3 | +To develop and deploy the `event-gateway` and all related elements locally, the easiest method includes using |
| 4 | +the [minikube](https://github.com/kubernetes/minikube) toolset. To get started, set up your local cluster with the |
| 5 | +following instructions... |
| 6 | + |
| 7 | +## Contents |
| 8 | +1. [Fedora/RHEL/CentOS](#fedora-rhel-centos) |
| 9 | +1. [Debian/Ubuntu](#debian-ubuntu) |
| 10 | +1. [MacOS](#macos) |
| 11 | + |
| 12 | +### Fedora/RHEL/CentOS |
| 13 | ++ Install the prerequisite packages: |
| 14 | + ```bash |
| 15 | + sudo dnf install kubernetes libvirt-daemon-kvm qemu-kvm nodejs docker |
| 16 | + ``` |
| 17 | + |
| 18 | ++ Ensure your user is added to the `libvirt` group for VM access. You can verify with `getent group libvirt` once done. |
| 19 | + ```bash |
| 20 | + sudo usermod -a -G libvirt $(whoami) |
| 21 | + ``` |
| 22 | + |
| 23 | ++ Next, add the `libvirt` group to your current user grouplist. Verify by running `id` once done. |
| 24 | + ```bash |
| 25 | + newgrp libvirt |
| 26 | + ``` |
| 27 | + |
| 28 | ++ Add the [docker-machine](https://github.com/docker/machine) binary to your system |
| 29 | + ```bash |
| 30 | + curl -L https://github.com/docker/machine/releases/download/v0.15.0/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && \ |
| 31 | + chmod +x /tmp/docker-machine && \ |
| 32 | + sudo cp /tmp/docker-machine /usr/local/bin/docker-machine |
| 33 | + ``` |
| 34 | + |
| 35 | ++ Add the CentOS `docker-machine` kvm driver. It's ok if you're not using CentOS as the driver should **still work**™ |
| 36 | + ```bash |
| 37 | + sudo curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v0.10.0/docker-machine-driver-kvm-centos7 > /tmp/docker-machine-driver-kvm && \ |
| 38 | + sudo chmod +x /tmp/docker-machine-driver-kvm && \ |
| 39 | + sudo mv /tmp/docker-machine-driver-kvm /usr/local/bin/docker-machine-driver-kvm |
| 40 | + ``` |
| 41 | + |
| 42 | ++ Download the minikube instance for your system |
| 43 | + ```bash |
| 44 | + curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 && \ |
| 45 | + sudo chmod +x minikube && \ |
| 46 | + sudo mv minikube /usr/local/bin/ |
| 47 | + ``` |
| 48 | + |
| 49 | ++ Finally, start up your minikube service! **NOTE:** the instructions recommend using `kvm2` but please use the version that matches your system install |
| 50 | + ```bash |
| 51 | + minikube start --vm-driver kvm2 |
| 52 | + ``` |
| 53 | + |
| 54 | ++ Once everything is running you should be able to view your running cluster status |
| 55 | + ```bash |
| 56 | + minikube status |
| 57 | + minikube service kubernetes-dashboard --namespace kube-system |
| 58 | + ``` |
| 59 | + |
| 60 | +### Debian/Ubuntu |
| 61 | + |
| 62 | +PENDING |
| 63 | + |
| 64 | +### MacOS |
| 65 | + |
| 66 | +PENDING |
0 commit comments