github.com/kata-containers/tests@v0.0.0-20240307153542-772105b56064/integration/kubernetes/runtimeclass_workloads/pod-secret.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: secret-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: ["/bin/sh", "-c", "tail -f /dev/null"] 17 volumeMounts: 18 # name must match the volume name below 19 - name: secret-volume 20 mountPath: /tmp/secret-volume 21 # The secret data is exposed to Containers in the Pod through a Volume. 22 volumes: 23 - name: secret-volume 24 secret: 25 secretName: test-secret