0 points

Simple container with env variables


dashboard

Sun Nov 29 2020 21:02:17 GMT+0000 (UTC)

Posted 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_copy Copy