mirror of
https://github.com/lukaszraczylo/rpi-home-cluster-setup.git
synced 2026-10-17 01:17:50 +00:00
Home K8S setup
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user