This commit is contained in:
Oriol
2023-03-16 21:23:44 +00:00
parent 57cf353500
commit 4e9641201d
7 changed files with 179 additions and 14 deletions

34
metallib/README.md Normal file
View File

@ -0,0 +1,34 @@
# https://levelup.gitconnected.com/step-by-step-slow-guide-kubernetes-cluster-on-raspberry-pi-4b-part-3-899fc270600e
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/metallb.yaml
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
cat << EOF > metalLB-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
namespace: metallb-system
name: config
data:
config: |
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.1.30-192.168.1.130
EOF
kubectl apply -f metalLB-config.yaml
# https://github.com/metallb/metallb/blob/main/design/pool-configuration.md