consolidated more variables and deleted all hard-coded values

This commit is contained in:
2025-06-30 01:28:25 +02:00
parent 9c11c808ff
commit e88a816753
9 changed files with 139 additions and 378 deletions

View File

@ -1,6 +1,8 @@
#!/bin/bash
source .env
LB_IP="10.50.3.35"
IP_POOL_RANGE="10.50.3.30-10.50.3.40"
## Setup all the needed repos
helm repo add metallb https://metallb.github.io/metallb
@ -25,7 +27,7 @@ kubectl wait --namespace metallb-system \
## Apply the load-balancer IPs range
kubectl apply -f manifests/metallb/metallb-config.yaml
envsubst < ./manifests/metallb/metallb-config.yaml | kubectl apply -f -
## Let's install traefik!
@ -33,6 +35,7 @@ helm install \
traefik traefik/traefik \
-n traefik \
-f ./manifests/traefik/values.yaml \
--set service.spec.loadBalancerIP="$LB_IP" \
--create-namespace
## Let's install Cert-Manager!