apiVersion: v1
kind: Pod
metadata:
name: nginx-pod
labels:
type: nginx
spec:
containers:
- name: nginx-container
image: nginx
env:
- name: a-env
value: sample
- A direct way of specifying the environment variables using a plain key-value pair.
ConfigMap
env:
- name: a-env
valueFrom:
configMapKeyRef:
Secrets
env:
- name: a-env
valueFrom:
secretKeyRef: