kubernetes/test/fixtures/doc-yaml/user-guide/secrets/secret-env-pod.yaml

apiVersion: v1
kind: Pod
metadata:
  name: secret-env-pod
spec:
  containers:
    - name: test-container
      image: busybox
      command: [ "/bin/sh", "-c", "env" ]
      env:
        - name: MY_SECRET_DATA
          valueFrom:
            secretKeyRef:
              name: test-secret
              key: data-1
  restartPolicy: Never