add node ignore this
This commit is contained in:
parent
6eacedc443
commit
4561063592
2 changed files with 2 additions and 4 deletions
|
@ -29,8 +29,7 @@
|
||||||
{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} \
|
{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} \
|
||||||
set /{{ cluster_name }}/network/config \
|
set /{{ cluster_name }}/network/config \
|
||||||
'{ "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "{{ flannel_backend_type }}" } }'
|
'{ "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "{{ flannel_backend_type }}" } }'
|
||||||
delegate_to: "{{groups['etcd'][0]}}"
|
when: inventory_hostname == groups['etcd'][0]
|
||||||
run_once: true
|
|
||||||
|
|
||||||
- name: Canal | Write canal configmap
|
- name: Canal | Write canal configmap
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} \
|
{{ bin_dir }}/etcdctl --peers={{ etcd_access_addresses }} \
|
||||||
set /{{ cluster_name }}/network/config \
|
set /{{ cluster_name }}/network/config \
|
||||||
'{ "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "{{ flannel_backend_type }}" } }'
|
'{ "Network": "{{ kube_pods_subnet }}", "SubnetLen": {{ kube_network_node_prefix }}, "Backend": { "Type": "{{ flannel_backend_type }}" } }'
|
||||||
delegate_to: "{{groups['etcd'][0]}}"
|
when: inventory_hostname == groups['etcd'][0]
|
||||||
run_once: true
|
|
||||||
|
|
||||||
- name: Flannel | Create flannel certs directory
|
- name: Flannel | Create flannel certs directory
|
||||||
file:
|
file:
|
||||||
|
|
Loading…
Reference in a new issue