-
Notifications
You must be signed in to change notification settings - Fork 0
Deploy Helpy to Microk8s
Microk8s is a "Low-ops, minimal production Kubernetes, for devs, cloud, clusters, workstations, Edge and IoT." It is perfect for standing up a quick cluster for either testing or production purposes. Note: You will want a minimum of 4GB of RAM and 2 CPUs on the VM to make this work.
sudo snap install microk8s --classic
sudo usermod -a -G microk8s $USER
sudo chown -f -R $USER ~/.kube
If you are like me, you may want to change the CLI commands to be a little more manageable with the following aliases:
echo "alias kubectl='microk8s kubectl'" >> ~/.bashrc
echo "alias helm='microk8s helm3'" >> ~/.bashrc
source ~/.bashrc
Enable services in Microk8s that we'll need
microk8s enable helm3
microk8s enable dns
Next, in order to make Helpy accessible, we'll use Metallb, which is integrated into Microk8s. You will need the IP address of the VM you are deploying to for this step:
microk8s enable metallb
When prompted for a range of IPS, enter your_ip_address-your_ip_address
Finally we will install the helm chart for Helpy. This will bootstrap a Helpy cluster complete with a database installed in the cluster.
helm repo add helpyio https://scott.github.io/helpy-helm/
helm repo update
helm install release helpyio/helpy
Thats it! You should be able to access Helpy on Kubernetes by voting the IP address you gave above.