Update roles/kube-master/tasks/main.yml

This commit is contained in:
2025-10-15 18:34:10 +00:00
parent ad28b79c13
commit e53d00785d

View File

@ -57,6 +57,20 @@
regexp: '10\.244\.0\.0/16' regexp: '10\.244\.0\.0/16'
replace: '192.168.3.0/16' replace: '192.168.3.0/16'
- name: Injeta configuração defensiva no ConfigMap
ansible.builtin.replace:
path: "{{ flannel_manifest_local }}"
regexp: 'net-conf.json: \|[\s\S]+?\n\s+\}'
replace: |
net-conf.json: |
{
"Network": "192.168.3.0/16",
"Backend": {
"Type": "vxlan"
},
"Interface": "eth1"
}
- name: cat flannel - name: cat flannel
shell: | shell: |
cat /tmp/kube-flannel.yml cat /tmp/kube-flannel.yml