Environment variables can be passed to containers running inside the pod. Environment variables are defined at the container level. It is the same as running
docker run
with -e
flag.apiVersion: v1 kind: Pod metadata: labels: name: frontend spec: containers: - name: httpd image: httpd:2.4-alpine env: - name: USER_ID value: 12345 - name: USER_PASS value: 12345