1
0
Fork 0

Update microk8s.md

This commit is contained in:
Joao M 2023-02-25 23:05:11 -06:00 committed by GitHub
parent f3f47819a4
commit d98dd725ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. You can add custom addons to your Microk8s installation.
Here are the steps to install EasyHAProxy on your Microk8s. 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 ```shell
microk8s addons repo add byjg https://github.com/byjg/microk8s-addons.git microk8s addons repo add byjg https://github.com/byjg/microk8s-addons.git
``` ```
2. Check if it is installed: And you should see:
```text ```text
$ microk8s status $ microk8s status
@ -30,7 +49,7 @@ addons:
## Installing EasyHAProxy addon ## 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: Usage:
@ -46,6 +65,8 @@ Install as a NodePort
microk8s enable easyhaproxy --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. For more parameters you can refer to the [Kubernetes](kubernetes.md) page.
---- ----