Files
rpi-home-cluster-setup/step3/infrastructure/modules/networking-flannel/main.tf
T
2021-03-13 00:23:06 +00:00

14 lines
508 B
Terraform

# kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
resource "null_resource" "flannel_networking" {
provisioner "local-exec" {
when = create
command = "kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml"
}
provisioner "local-exec" {
when = destroy
command = "kubectl delete -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml"
}
}