all repos — infra @ f5619d9a75a7dfd0072ffeb4742fd18b5b271cc0

infrastructure manifests and setup notes

apps: add miniflux
Anirudh Oppiliappan x@icyphox.sh
Sun, 14 Jul 2024 12:08:41 +0300
commit

f5619d9a75a7dfd0072ffeb4742fd18b5b271cc0

parent

b8300f6693ce4c50a0953071b678cbc67f8ed4cd

3 files changed, 54 insertions(+), 58 deletions(-)

jump to
M apps/coredns/coredns.yamlapps/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