+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+ name: pingtunnelworkaround
+ namespace: "{{ rook_namespace }}"
+ labels:
+ app: pingtunnelworkaround
+spec:
+ selector:
+ matchLabels:
+ app: pingtunnelworkaround
+ template:
+ metadata:
+ labels:
+ app: pingtunnelworkaround
+ spec:
+ tolerations:
+ # this toleration is to have the daemonset runnable on master nodes
+ # remove it if your masters can't run pods
+ - key: node-role.kubernetes.io/master
+ effect: NoSchedule
+ nodeSelector:
+ kubernetes.io/os: linux
+ hostNetwork: true
+ containers:
+ - name: busybox
+ image: {{ busybox_repository }}/library/busybox:{{ 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"]