apiVersion: apps/v1
kind: Deployment
metadata:
  name: the-deployment
  labels:
    app: hello
spec:
  replicas: 2
  selector:
    matchLabels:
      app: hello
  template:
    metadata:
      labels:
        app: hello
    spec:
      containers:
        - name: the-container
          image: nginxdemos/hello:{{.ImageTag}}
          ports:
            - containerPort: 80
          env:
            - name: GREETING
              value: "{{.Greeting}}"
            - name: DB_CONNECTION_STRING
              value: "User ID=root;Host=the-test-db-server;Port=5432;Database=the-db;"
            - name: DEBUG
              value: "true"
