apiVersion: apps/v1
kind: Deployment
metadata:
  name: app-tally-deployment
spec:
  replicas: 2
  selector:
    matchLabels:
      app: app-tally
  template:
    metadata:
      labels:
        app: app-tally
    spec:
      containers:
      - name: app-tally
        image: oydeu/app-tally:latest
        ports:
        - containerPort: 3000
        env:
          - name: LANG
            value: C.UTF-8
          - name: RAILS_LOG_TO_STDOUT
            value: "TRUE"
          - name: RAILS_SERVE_STATIC_FILES
            value: "TRUE"
          - name: RAILS_ENV
            value: production
          - name: SECRET_KEY_BASE
            valueFrom:
              secretKeyRef:
                name: app-tally-secrets
                key: secret-key-base
