core/scripts/00_install_metalLB.sh
Guillaume B.B. Van Hemmen 58986afe32 #0000 - Add MetalLB Helm values and update installation script
Introduces custom `metallb.yaml` Helm values with node selectors and tolerations targeting specific nodes. Renames and adjusts MetalLB resource file, removing unused IPs. Updates installation script to apply the new Helm values and handle namespace creation idempotently.
2024-12-27 13:46:42 +01:00

11 lines
324 B
Bash
Executable file

#!/bin/bash
set -ex
helm repo add metallb https://metallb.github.io/metallb
helm repo update
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 -f ./helm-values/metallb.yaml