Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 460 Bytes

env_vars.md

File metadata and controls

23 lines (20 loc) · 460 Bytes
apiVersion: v1
kind: Pod
metadata:
  name: envar-demo
  labels:
    purpose: demonstrate-envars
spec:
  containers:
  - name: envar-demo-container
    image: gcr.io/google-samples/node-hello:1.0
    env:
    - name: DEMO_GREETING
      value: "Hello from the environment"
    - name: DEMO_FAREWELL
      value: "Such a sweet sorrow"

kubectl apply -f envars.yaml

kubectl get pods -l purpose=demonstrate-envars

kubectl exec envar-demo -- printenv