apiVersion: apps/v1
kind: Deployment
metadata:
  name: brainrobot-website
  labels:
    service: website
    keel.sh/policy: force
    keel.sh/trigger: poll
  annotations:
    keel.sh/pollSchedule: "@every 10m"
spec:
  replicas: 1
  selector:
    matchLabels:
      service: website
  template:
    metadata:
      labels:
        service: website
    spec:
      containers:
      - name: brainrobot-website
        image: tenpenny/brainrobot-website:latest
        imagePullPolicy: Always
        ports:
        - containerPort: 81
        env:
        - name: TZ
          value: "UTC"
        volumeMounts:
        - mountPath: /secrets/sendgrid_key
          name: sendgrid-key
          subPath: sendgrid_key
      imagePullSecrets:
      - name: regcred
      volumes:
        - name: sendgrid-key
          secret:
            secretName: sendgrid-api-key
            items:
            - key: sendgrid_key
              path: sendgrid_key
