mirror of
https://github.com/lukaszraczylo/rpi-home-cluster-setup.git
synced 2026-10-15 01:07:42 +00:00
12 lines
525 B
Terraform
12 lines
525 B
Terraform
resource "null_resource" "metallb_networking" {
|
|
|
|
provisioner "local-exec" {
|
|
when = create
|
|
command = "kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/main/manifests/metallb.yaml; kubectl get configmap kube-proxy -n kube-system -o yaml | sed -e \"s/strictARP: false/strictARP: true/\" | kubectl apply -f - -n kube-system"
|
|
}
|
|
|
|
provisioner "local-exec" {
|
|
when = destroy
|
|
command = "kubectl delete -f https://raw.githubusercontent.com/metallb/metallb/main/manifests/metallb.yaml"
|
|
}
|
|
} |