Add etcd backups, fix flannel patching draft.

This commit is contained in:
2021-03-13 21:42:12 +00:00
parent cd4bdade62
commit 49643433f0
4 changed files with 137 additions and 7 deletions
@@ -14,16 +14,15 @@ resource "null_resource" "flannel_networking" {
}
resource "null_resource" "flannel_networking_patch" {
depends_on = [ null_resource.flannel_networking ]
provisioner = "local-exec" {
when = create
command = << EOF
depends_on = [null_resource.flannel_networking]
provisioner "local-exec" {
when = create
command = <<EOF
kubectl patch configmap kube-flannel-cfg -n kube-system -p '{
"data": {
"net-conf.json": "{\r\n\t\"Network\": \"10.244.0.0/16\",\r\n\t\"Backend\": { \r\n\t\t\"Type\": \"host-gw\"\n\t}\n}"
}
}'"
EOF
}'
EOF
}
}