github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/kubernetes/runtimeclass_workloads/pod-custom-dns.yaml (about)

     1  #
     2  # Copyright (c) 2019 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: v1
     7  kind: Pod
     8  metadata:
     9    namespace: default
    10    name: custom-dns-test
    11  spec:
    12    terminationGracePeriodSeconds: 0
    13    runtimeClassName: kata
    14    containers:
    15      - name: test
    16        image: quay.io/prometheus/busybox:latest
    17        command: ["tail", "-f", "/dev/null"]
    18    dnsPolicy: "None"
    19    dnsConfig:
    20      nameservers:
    21        - 1.2.3.4
    22      searches:
    23        - dns.test.search