mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-14 21:07:42 -02:30
fix calico tunl0 routes test (#9061)
Signed-off-by: cyclinder qifeng.guo@daocloud.io
This commit is contained in:
@@ -2,11 +2,11 @@
|
|||||||
- hosts: kube_node
|
- hosts: kube_node
|
||||||
tasks:
|
tasks:
|
||||||
- name: Test tunl0 routes
|
- name: Test tunl0 routes
|
||||||
shell: "set -o pipefail && ! /sbin/ip ro | grep '/26 via' | grep -v tunl0"
|
shell: "set -o pipefail && ! /sbin/ip ro | grep '/{{ calico_pool_blocksize}} | default(26) via' | grep -v tunl0"
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
when:
|
when:
|
||||||
- (ipip|default(true) or cloud_provider is defined)
|
- (calico_ipip_mode is defined and calico_ipip_mode != 'Never' or cloud_provider is defined)
|
||||||
- kube_network_plugin|default('calico') == 'calico'
|
- kube_network_plugin|default('calico') == 'calico'
|
||||||
|
|
||||||
- hosts: k8s_cluster
|
- hosts: k8s_cluster
|
||||||
|
|||||||
Reference in New Issue
Block a user