backup
This commit is contained in:
34
metallib/README.md
Normal file
34
metallib/README.md
Normal 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
|
Reference in New Issue
Block a user