Add metallb installation for kubernetes

This commit is contained in:
Sambo Chea 2021-10-14 10:37:56 +07:00
parent 4f9dc79c60
commit 1ffd2a81e9
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490

35
METALLB.md Normal file
View File

@ -0,0 +1,35 @@
# Install MetalLB
### Preparation
```kubectl edit configmap -n kube-system kube-proxy```
```yaml
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
strictARP: true
```
OR
```shell
kubectl get configmap kube-proxy -n kube-system -o yaml | \
sed -e "s/strictARP: false/strictARP: true/" | \
kubectl diff -f - -n kube-system
```
```shell
# actually apply the changes, returns nonzero returncode on errors only
kubectl get configmap kube-proxy -n kube-system -o yaml | \
sed -e "s/strictARP: false/strictARP: true/" | \
kubectl apply -f - -n kube-system
```
### Install
```shell
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.10.3/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.10.3/manifests/metallb.yaml
```
### Reference
- https://metallb.universe.tf/installation