...

Text file src/k8s.io/kubernetes/test/fixtures/doc-yaml/user-guide/secrets/secret-env-pod.yaml

Documentation: k8s.io/kubernetes/test/fixtures/doc-yaml/user-guide/secrets

     1apiVersion: v1
     2kind: Pod
     3metadata:
     4  name: secret-env-pod
     5spec:
     6  containers:
     7    - name: test-container
     8      image: busybox
     9      command: [ "/bin/sh", "-c", "env" ]
    10      env:
    11        - name: MY_SECRET_DATA
    12          valueFrom:
    13            secretKeyRef:
    14              name: test-secret
    15              key: data-1
    16  restartPolicy: Never

View as plain text