mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 08:43:05 +00:00
Update roles/kube-master/tasks/main.yml
This commit is contained in:
@ -57,6 +57,20 @@
|
||||
regexp: '10\.244\.0\.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
|
||||
shell: |
|
||||
cat /tmp/kube-flannel.yml
|
||||
|
||||
Reference in New Issue
Block a user