Browse Source

add miniflux

Josh Bicking 1 year ago
parent
commit
992fc30889
2 changed files with 72 additions and 0 deletions
  1. 2 0
      cloudflared.yaml
  2. 70 0
      miniflux.yaml

+ 2 - 0
cloudflared.yaml

@@ -78,4 +78,6 @@ data:
       service: http://jellyfin-service.plex.svc.cluster.local:8096
     - hostname: s3.jibby.org
       service: http://rook-ceph-rgw-ceph-objectstore.rook-ceph.svc.cluster.local:6980
+    - hostname: miniflux.jibby.org
+      service: http://miniflux-service.miniflux.svc.cluster.local:8080
     - service: http_status:404

+ 70 - 0
miniflux.yaml

@@ -0,0 +1,70 @@
+---
+apiVersion: v1
+kind: Namespace
+metadata:
+    name: miniflux
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: miniflux
+  namespace: miniflux
+spec:
+  selector:
+    matchLabels:
+      app: miniflux
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: miniflux
+    spec:
+      containers:
+      - name: miniflux
+        image: miniflux/miniflux:2.0.39
+        ports:
+        - containerPort: 8080
+          name: http-web-svc
+        envFrom:
+        - secretRef:
+            name: miniflux-db-secret
+        env:
+        - name: RUN_MIGRATIONS
+          value: "1"
+        livenessProbe:
+          exec:
+            command: ["/usr/bin/miniflux", "-healthcheck", "auto"]
+          initialDelaySeconds: 5
+          periodSeconds: 5
+          timeoutSeconds: 5
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: miniflux-service
+  namespace: miniflux
+spec:
+  selector:
+    app: miniflux
+  type: ClusterIP
+  ports:
+  - name: miniflux-web-port
+    protocol: TCP
+    port: 8080
+    targetPort: http-web-svc
+---
+apiVersion: traefik.containo.us/v1alpha1
+kind: IngressRoute
+metadata:
+  name: miniflux
+  namespace: miniflux
+spec:
+  entryPoints:
+  - websecure
+  routes:
+  - kind: Rule
+    match: Host(`miniflux.jibby.org`)
+    services:
+    - kind: Service
+      name: miniflux-service
+      port: 8080