Add metallb
This commit is contained in:
parent
15cfa5b48e
commit
0ab294fad4
4 changed files with 24 additions and 0 deletions
|
@ -7,4 +7,5 @@ kubectl config view --raw --minify --flatten --output='jsonpath={.clusters[].clu
|
|||
vault write auth/kubernetes/config \
|
||||
kubernetes_host=https://${HOST_IP}:6443 \
|
||||
kubernetes_ca_cert=@ca.crt
|
||||
|
||||
rm ca.crt
|
||||
|
|
13
001-metallb/install.sh
Executable file
13
001-metallb/install.sh
Executable 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
4
001-metallb/uninstall.sh
Executable 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
6
001-metallb/values.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
configInline:
|
||||
address-pools:
|
||||
- name: default
|
||||
protocol: layer2
|
||||
addresses:
|
||||
- 192.168.0.200-192.168.0.210
|
Loading…
Reference in a new issue