20 lines
593 B
YAML
20 lines
593 B
YAML
- name: Enable structARP on kube-proxy
|
|
shell: |
|
|
kubectl get configmap kube-proxy -n kube-system -o yaml | \
|
|
sed -e "s/strictARP: false/strictARP: true/" | \
|
|
kubectl apply -f - -n kube-system
|
|
|
|
- name: install MetalLB
|
|
shell: |
|
|
helm repo add metallb https://metallb.github.io/metallb
|
|
helm install metallb metallb/metallb --create-namespace --namespace metallb-system
|
|
|
|
- name: copy MetalLB config
|
|
become: yes
|
|
template:
|
|
src: metallb-config.yaml
|
|
dest: /tmp/metallb-config.yaml
|
|
|
|
- name: install MetalLB config
|
|
command: kubectl apply -f /tmp/metallb-config.yaml
|