mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2025-10-27 00:33:16 +00:00
Update roles/kube-node/tasks/main.yml
This commit is contained in:
@ -23,9 +23,9 @@
|
||||
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
||||
|
||||
|
||||
- name: Atribuir podCIDR ao nó via hostname real
|
||||
shell: |
|
||||
kubectl patch node {{ node_hostname.stdout }} -p '{"spec":{"podCIDR":"192.168.2.0/24"}}'
|
||||
when:
|
||||
- hostvars['master1']['kubeadm_join_command'] is defined
|
||||
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
||||
#- name: Atribuir podCIDR ao nó via hostname real
|
||||
# shell: |
|
||||
# kubectl patch node {{ node_hostname.stdout }} -p '{"spec":{"podCIDR":"192.168.2.0/24"}}'
|
||||
# when:
|
||||
# - hostvars['master1']['kubeadm_join_command'] is defined
|
||||
# - node_status.stdout | trim == "NOT_IN_CLUSTER"
|
||||
Reference in New Issue
Block a user