consolidated more variables and deleted all hard-coded values
This commit is contained in:
@ -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!
|
||||
|
Reference in New Issue
Block a user