Update roles/kube-master/tasks/patch_netconf.py

This commit is contained in:
2025-10-21 09:11:30 +00:00
parent 2391d89175
commit 78e1bb9b48

View File

@ -10,7 +10,7 @@ with open("/tmp/kube-flannel.yml", "r") as f:
for doc in docs:
if doc.get("kind") == "ConfigMap" and doc.get("metadata", {}).get("name") == "kube-flannel-cfg":
doc["data"]["net-conf.json"] = '''{
"Network": "192.168.2.0/24",
"Network": "10.244.0.0/16",
"Backend": {
"Type": "vxlan"
},