Simple container with env variables

PHOTO EMBED

Sun Nov 29 2020 21:02:17 GMT+0000 (Coordinated Universal Time)

Saved by @ankity09 #aws,ckad

apiVersion: v1
kind: Pod
metadata:
  name: ckad-nginx
spec:
  containers:
  -  name: nginx
     image: nginx:1.17.10
     ports:
     -  containerPort: 80
     env:
       -  name: DB_URL
          value: postgresql://mydb:5432
       -  name: DB_USERNAME
          value: admin
content_copyCOPY