diff --git a/helm-values/metallb.yaml b/helm-values/metallb.yaml new file mode 100644 index 0000000..af183d4 --- /dev/null +++ b/helm-values/metallb.yaml @@ -0,0 +1,19 @@ +controller: + nodeSelector: + com.van-hemmen.role: gateway + com.van-hemmen.hosting: ovh + tolerations: + - key: "com.van-hemmen.role" + operator: "Equal" + value: "gateway" + effect: "NoSchedule" + +speaker: + nodeSelector: + com.van-hemmen.role: gateway + com.van-hemmen.hosting: ovh + tolerations: + - key: "com.van-hemmen.role" + operator: "Equal" + value: "gateway" + effect: "NoSchedule" diff --git a/metallb-ressources.yaml b/ressources/metallb-ip.yaml similarity index 85% rename from metallb-ressources.yaml rename to ressources/metallb-ip.yaml index 711b485..ce3396a 100644 --- a/metallb-ressources.yaml +++ b/ressources/metallb-ip.yaml @@ -5,8 +5,6 @@ metadata: namespace: metallb-system spec: addresses: - - 5.196.149.159/32 - - 5.196.149.200/32 - 5.196.149.203/32 --- apiVersion: metallb.io/v1beta1 diff --git a/scripts/00_install_metalLB.sh b/scripts/00_install_metalLB.sh old mode 100644 new mode 100755 index c2a9bf6..52e0375 --- a/scripts/00_install_metalLB.sh +++ b/scripts/00_install_metalLB.sh @@ -5,7 +5,7 @@ set -ex helm repo add metallb https://metallb.github.io/metallb helm repo update -kubectl create namespace metallb-system +kubectl create namespace metallb-system || true kubectl label namespace metallb-system pod-security.kubernetes.io/enforce=privileged -helm install metallb metallb/metallb --namespace metallb-system +helm install metallb metallb/metallb --namespace metallb-system -f ./helm-values/metallb.yaml