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-node/tasks/main.yml
This commit is contained in:
@ -23,9 +23,9 @@
|
|||||||
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
||||||
|
|
||||||
|
|
||||||
- name: Atribuir podCIDR ao nó via hostname real
|
#- name: Atribuir podCIDR ao nó via hostname real
|
||||||
shell: |
|
# shell: |
|
||||||
kubectl patch node {{ node_hostname.stdout }} -p '{"spec":{"podCIDR":"192.168.2.0/24"}}'
|
# kubectl patch node {{ node_hostname.stdout }} -p '{"spec":{"podCIDR":"192.168.2.0/24"}}'
|
||||||
when:
|
# when:
|
||||||
- hostvars['master1']['kubeadm_join_command'] is defined
|
# - hostvars['master1']['kubeadm_join_command'] is defined
|
||||||
- node_status.stdout | trim == "NOT_IN_CLUSTER"
|
# - node_status.stdout | trim == "NOT_IN_CLUSTER"
|
||||||
Reference in New Issue
Block a user