From d98dd725ca8fb0743154bfbc0c6c395b493aef75 Mon Sep 17 00:00:00 2001 From: Joao M Date: Sat, 25 Feb 2023 23:05:11 -0600 Subject: [PATCH] Update microk8s.md --- docs/microk8s.md | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/docs/microk8s.md b/docs/microk8s.md index decbe36..b06d329 100644 --- a/docs/microk8s.md +++ b/docs/microk8s.md @@ -4,17 +4,36 @@ Microk8s is a lightweight Kubernetes distribution that can run on a single machi You can add custom addons to your Microk8s installation. Here are the steps to install EasyHAProxy on your Microk8s. -## Installing ByJG repository +## Enabling EasyHAProxy on MicroK8s -Before install the addons, you need to add the ByJG repository to your Microk8s installation. +EasyHAProxy is being part of official MicroK8s Community edition since MicroK8s version 1.27. -1. Access the microk8s host machine and run: +Just enable the community add-on + +``` +microk8s enable community +``` + +and you'll see: + +``` +$ microk8s status + +microk8s is running +... +addons: + ... + disabled: + easyhaproxy # (community) EasyHAProxy can detect and configure HAProxy automatically based on ingress labels +``` + +However, if you are using MicroK8s before 1.27 you need to enable it directly from the ByJG repository by accessing the microk8s host machine and run: ```shell microk8s addons repo add byjg https://github.com/byjg/microk8s-addons.git ``` -2. Check if it is installed: +And you should see: ```text $ microk8s status @@ -30,7 +49,7 @@ addons: ## Installing EasyHAProxy addon -EasyHAProxy can detect and configure HAProxy automatically based on ingress labels. +Once you have enable the EasyHAProxy from the community repository or from ByJG repository and can enable it by running: Usage: @@ -46,6 +65,8 @@ Install as a NodePort microk8s enable easyhaproxy --nodeport ``` +**Remember**: you need to disable any ingress controller you have previously installed, for example, nginx, traefik, etc. before install EasyHaProxy. + For more parameters you can refer to the [Kubernetes](kubernetes.md) page. ----