Add metallb

This commit is contained in:
Amarpreet Minhas 2022-07-02 14:41:57 -04:00
parent 15cfa5b48e
commit 0ab294fad4
4 changed files with 24 additions and 0 deletions

View file

@ -7,4 +7,5 @@ kubectl config view --raw --minify --flatten --output='jsonpath={.clusters[].clu
vault write auth/kubernetes/config \ vault write auth/kubernetes/config \
kubernetes_host=https://${HOST_IP}:6443 \ kubernetes_host=https://${HOST_IP}:6443 \
kubernetes_ca_cert=@ca.crt kubernetes_ca_cert=@ca.crt
rm ca.crt rm ca.crt

13
001-metallb/install.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
CHART_VERSION=0.11.0
helm repo add metallb https://metallb.github.io/metallb
helm repo update
helm upgrade --install \
metallb \
metallb/metallb \
-f values.yaml \
-n metallb-system \
--version ${CHART_VERSION} \
--create-namespace \
--cleanup-on-fail

4
001-metallb/uninstall.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
helm uninstall metallb -n metallb-system
kubectl delete ns metallb-system

6
001-metallb/values.yaml Normal file
View file

@ -0,0 +1,6 @@
configInline:
address-pools:
- name: default
protocol: layer2
addresses:
- 192.168.0.200-192.168.0.210