|
@@ -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
|