---
apiVersion: batch/v1
kind: Job
metadata:
  name: validate-dns-linux
spec:
  template:
    spec:
      restartPolicy: Never
      containers:
      - name: validate-bing
        image: library/busybox
        command: ['sh', '-c', 'until nslookup www.bing.com; do echo waiting for DNS resolution; sleep 1; done;']
      - name: validate-google
        image: library/busybox
        command: ['sh', '-c', 'until nslookup google.com; do echo waiting for DNS resolution; sleep 1; done;']
      nodeSelector:
        beta.kubernetes.io/os: linux
