apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: pgweb
  name: pgweb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: pgweb
  template:
    metadata:
      labels:
        app: pgweb
    spec:
      containers:
      - name: eosrate-pgweb
        image: sosedoff/pgweb:latest
        imagePullPolicy: "Always"
        envFrom:
        - configMapRef:
            name: pgweb-config
        ports:
        - containerPort: 8081
      restartPolicy: Always
