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

     1  #
     2  # Copyright (c) 2018 Intel Corporation
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  apiVersion: v1
     7  kind: Pod
     8  metadata:
     9    name: config-env-test-pod
    10  spec:
    11    terminationGracePeriodSeconds: 0
    12    runtimeClassName: kata
    13    containers:
    14      - name: test-container
    15        image: quay.io/prometheus/busybox:latest
    16        command: ["tail", "-f", "/dev/null"]
    17        env:
    18          - name: KUBE_CONFIG_1
    19            valueFrom:
    20              configMapKeyRef:
    21                name: test-configmap
    22                key: data-1
    23          - name: KUBE_CONFIG_2
    24            valueFrom:
    25              configMapKeyRef:
    26                name: test-configmap
    27                key: data-2
    28    restartPolicy: Never