---
kind: Deployment
apiVersion: apps/v1
metadata:
  namespace: default
  name: freshrss
  labels:
    app: freshrss

spec:
  replicas: 1
  selector:
    matchLabels:
      app: freshrss
  strategy:
    type: Recreate
  template:
    metadata:
      labels:
        app: freshrss
        version: v1.18.1
    spec:
      containers:
        - env:
          # every 20 minutes
          - name: CRON_MIN
            value: "*/20"
          - name: TZ
            value: "America/Denver"
          name: freshrss-app
          image: freshrss/freshrss:1.18.1-arm
          volumeMounts:
            - mountPath: /var/www/FreshRSS/data
              subPath: data
              name: freshrss-data
            - mountPath: /var/www/FreshRSS/extensions
              subPath: extensions
              name: freshrss-data 
          ports:
            - containerPort: 80
              name: freshrss-http
          # livenessProbe:
          #   httpGet:
          #     path: /healthcheck
          #     port: freshrss-http
          #   initialDelaySeconds: 20
          #   periodSeconds: 10
      volumes:
        - name: freshrss-data
          persistentVolumeClaim:
            claimName: freshrss-persistent-claim    
      restartPolicy: Always
