apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: prytaneum-client
  name: prytaneum-client
  namespace: production
spec:
  replicas: 1
  selector:
    matchLabels:
      app: prytaneum-client
  template:
    metadata:
      labels:
        app: prytaneum-client
    spec:
      containers:
        - name: prytaneum-client
          image: gcr.io/PROJECT_ID/CLIENT_IMAGE:TAG
          imagePullPolicy: IfNotPresent
          env:
            - name: NODE_ENV
              valueFrom:
                configMapKeyRef:
                  key: NODE_ENV
                  name: prytaneum-client-config
            - name: HOST
              valueFrom:
                configMapKeyRef:
                  key: HOST
                  name: prytaneum-client-config
            - name: CLIENT_PORT
              valueFrom:
                configMapKeyRef:
                  key: CLIENT_PORT
                  name: prytaneum-client-config
