apps: add miniflux
Anirudh Oppiliappan x@icyphox.sh
Sun, 14 Jul 2024 12:08:41 +0300
3 files changed,
54 insertions(+),
58 deletions(-)
M
apps/coredns/coredns.yaml
→
apps/coredns/coredns.yaml
@@ -6,7 +6,7 @@ log
kubernetes koti.lan rewrite name dav.koti.lan radicale.default.svc.koti.lan - rewrite name rss.koti.lan yarr.default.svc.koti.lan + rewrite name feed.koti.lan miniflux.default.svc.koti.lan rewrite name g.koti.lan grafana.monitoring.svc.koti.lan rewrite name files.garage.koti.lan garage.default.svc.koti.lan }
A
apps/miniflux/miniflux.yaml
@@ -0,0 +1,53 @@
+apiVersion: apps/v1 +kind: Deployment +metadata: + name: miniflux + labels: + app: miniflux +spec: + selector: + matchLabels: + app: miniflux + template: + metadata: + labels: + app: miniflux + spec: + containers: + - name: miniflux + image: ghcr.io/miniflux/miniflux + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 8080 + env: + - name: POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgres + key: postgres-password + - name: DATABASE_URL + value: "postgres://postgres:$(POSTGRES_PASSWORD)@postgres.default:5432/miniflux?sslmode=disable" + - name: RUN_MIGRATIONS + value: "1" + - name: CREATE_ADMIN + value: "1" + - name: ADMIN_USERNAME + value: icy + - name: ADMIN_PASSWORD + valueFrom: + secretKeyRef: + name: miniflux + key: password +--- +apiVersion: v1 +kind: Service +metadata: + name: miniflux +spec: + selector: + app: miniflux + ports: + - name: http + port: 80 + targetPort: 8080
D
apps/yarr/yarr.yaml
@@ -1,57 +0,0 @@
-apiVersion: apps/v1 -kind: Deployment -metadata: - name: yarr - labels: - app: yarr -spec: - selector: - matchLabels: - app: yarr - template: - metadata: - labels: - app: yarr - spec: - containers: - - name: yarr - image: sini:5000/yarr:latest - imagePullPolicy: Always - ports: - - name: http - containerPort: 7070 - args: - - -addr - - 0.0.0.0:7070 - volumeMounts: - - name: db - mountPath: /data - volumes: - - name: db - persistentVolumeClaim: - claimName: yarr-db - ---- -apiVersion: v1 -kind: Service -metadata: - name: yarr -spec: - selector: - app: yarr - ports: - - name: http - port: 80 - targetPort: 7070 ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: yarr-db -spec: - storageClassName: local-path - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 200Mi