mirror of https://github.com/k3s-io/k3s
22 lines
514 B
YAML
22 lines
514 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: config-env-test-pod
|
|
spec:
|
|
containers:
|
|
- name: test-container
|
|
image: gcr.io/google_containers/busybox
|
|
command: [ "/bin/sh", "-c", "env" ]
|
|
env:
|
|
- name: KUBE_CONFIG_1
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: test-configmap
|
|
key: data-1
|
|
- name: KUBE_CONFIG_2
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: test-configmap
|
|
key: data-2
|
|
restartPolicy: Never
|