apiVersion: batch/v1
kind: Job
metadata:
  name: test-dns
spec:
  template:
    metadata:
      name: test-dns
    spec:
      restartPolicy: OnFailure
      containers:
        - image: busybox
          imagePullPolicy: IfNotPresent
          name: busybox
          command:
            - nslookup
            - kubernetes
