mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-14 02:10:21 +00:00
26 lines
588 B
YAML
26 lines
588 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: env-test-pod
|
|
spec:
|
|
containers:
|
|
- name: test-container
|
|
image: k8s.gcr.io/busybox
|
|
command: [ "/bin/sh", "-c", "env" ]
|
|
env:
|
|
- name: TEST_CMD_1
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: test-secret
|
|
key: key-1
|
|
- name: TEST_CMD_2
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: test-configmap
|
|
key: key-2
|
|
- name: TEST_CMD_3
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
restartPolicy: Never
|