mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 16:53:04 +00:00
Update roles/kube-master/tasks/main.yml
This commit is contained in:
@ -58,19 +58,11 @@
|
||||
regexp: '10\.244\.0\.0/16'
|
||||
replace: '192.168.3.0/16'
|
||||
|
||||
- name: Injeta configuração defensiva no ConfigMap
|
||||
ansible.builtin.replace:
|
||||
path: /tmp/kube-flannel.yml
|
||||
regexp: 'net-conf.json: \|(\n[ ]{4,}.*)+?\n[ ]{2,}\}'
|
||||
replace: |
|
||||
net-conf.json: |
|
||||
{
|
||||
"Network": "192.168.3.0/16",
|
||||
"Backend": {
|
||||
"Type": "vxlan"
|
||||
},
|
||||
"Interface": "eth1"
|
||||
}
|
||||
|
||||
- name: Corrigir net-conf.json no manifest do Flannel
|
||||
ansible.builtin.script:
|
||||
cmd: patch_netconf.py
|
||||
|
||||
|
||||
- name: cat flannel
|
||||
shell: |
|
||||
|
||||
Reference in New Issue
Block a user