core/scripts/00_install_metalLB.sh
Guillaume B.B. Van Hemmen 5e81dc3eba #0000 - Set bash script to fail on error without printing commands
Removed the `-x` flag from `set` to prevent printing each command during execution, improving log readability. The script will still terminate on errors with the `-e` flag.
2024-12-27 13:47:26 +01:00

11 lines
323 B
Bash
Executable file

#!/bin/bash
set -e
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