From d1dab992cf0d4476176797db623f8f33e438146f Mon Sep 17 00:00:00 2001 From: pb Date: Fri, 6 Sep 2024 14:24:20 +0200 Subject: [PATCH] updated deployment requirement --- README.md | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/README.md b/README.md index 23a80f7..3394ee4 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,71 @@ In rules add a new entry : This command **must return "yes"** +## Allow services to be joined with reverse proxy + +Since the development has been realised in a K3S environment, we will use the lightweight solution provided by **traefik**. + +We need to install **metallb** to expose our cluster to the exterior and allow packets to reach traefik. + +### Deploy traefik and metallb + +- Make sure that helm is installed, else visit : https://helm.sh/docs/intro/install/ + +- Add the repositories for traefik and metallb +> helm repo add metallb https://metallb.github.io/metallb +> helm repo add traefik https://helm.traefik.io/traefik + +>helm repo update + +- Create the namespaces for each +> kubectl create ns traefik-ingress +> kubectl create ns metallb-system + +- Configure the deployment + +``` +cat > traefik-values.yaml < helm upgrade --install metallb metallb/metallb +> helm upgrade --install metallb metallb/metallb + +### Configure metallb + +``` +cat << 'EOF' | kubectl apply -f - +apiVersion: metallb.io/v1beta1 +kind: IPAddressPool +metadata: + name: default-pool + namespace: metallb-system +spec: + addresses: + - 192.168.0.200-192.168.0.250 +--- +apiVersion: metallb.io/v1beta1 +kind: L2Advertisement +metadata: + name: default + namespace: metallb-system +spec: + ipAddressPools: + - default-pool +EOF +``` ## TODO