X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=apps%2Fceph%2Fkubespray%2Fplaybooks%2Froles%2Finstall%2Ftemplates%2Fping-tunnel-workaround.yaml.j2;h=5941c35c669ea19baf1fc0d3961f97c786390630;hp=089f729f0ba588a29d5d4da438367d315ad69cf2;hb=refs%2Fchanges%2F50%2F8450%2F1;hpb=63381eb6b2fb6271d5d7c52a7ed8cea562ee441b diff --git a/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 b/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 index 089f729..5941c35 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 +++ b/apps/ceph/kubespray/playbooks/roles/install/templates/ping-tunnel-workaround.yaml.j2 @@ -19,11 +19,14 @@ spec: # remove it if your masters can't run pods - key: node-role.kubernetes.io/master effect: NoSchedule + - key: {{ rook_storage_label }} + effect: NoSchedule + operator: Exists nodeSelector: kubernetes.io/os: linux hostNetwork: true containers: - name: busybox - image: {{ busybox_repository }}/library/busybox:{{ busybox_version }} + image: {{ busybox_repository }}:{{ busybox_version }} command: ["/bin/sh"] args: ["-c", "while true ; do ip route | grep tunl0 | awk -F/ '{print $1}' | xargs -n 1 ping -c 1; sleep 5; done"]