add miniflux

This commit is contained in:
Finn 2024-07-17 21:32:13 -07:00
parent a894c8cf50
commit 448c9411e4
6 changed files with 131 additions and 0 deletions

View file

@ -12,3 +12,4 @@ resources:
- shlink - shlink
- system-upgrade - system-upgrade
- keycloak - keycloak
- miniflux

View file

@ -0,0 +1,20 @@
apiVersion: "acid.zalan.do/v1"
kind: postgresql
metadata:
name: miniflux-database
spec:
teamId: miniflux
volume:
size: 1Gi
numberOfInstances: 2
users:
superuser:
- superuser
- createdb
miniflux: []
databases:
miniflux: miniflux
preparedDatabases:
miniflux: {}
postgresql:
version: "16"

31
k8s/miniflux/ingress.yaml Normal file
View file

@ -0,0 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: miniflux
spec:
rules:
- host: miniflux.janky.solutions
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: miniflux
port:
name: web
---
apiVersion: v1
kind: Service
metadata:
name: miniflux
labels:
app: miniflux
spec:
ports:
- name: web
port: 8080
clusterIP: None
selector:
app: miniflux

View file

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: miniflux
resources:
- namespace.yaml
- ingress.yaml
- database.yaml
- miniflux.yaml
- secrets.yaml

View file

@ -0,0 +1,66 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: miniflux
labels:
app: miniflux
spec:
replicas: 2
selector:
matchLabels:
app: miniflux
template:
metadata:
labels:
app: miniflux
spec:
containers:
- name: miniflux
image: git.janky.solutions/finn/miniflux:disable-local-auth
imagePullPolicy: Always
resources: {}
envFrom:
- secretRef:
name: miniflux
env:
- name: DATABASE_URL
value: "postgresql://miniflux-database.miniflux.svc.cluster.local/miniflux"
- name: PGUSER
valueFrom:
secretKeyRef:
name: miniflux.miniflux-database.credentials.postgresql.acid.zalan.do
key: username
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: miniflux.miniflux-database.credentials.postgresql.acid.zalan.do
key: password
- name: RUN_MIGRATIONS
value: "1"
- name: BASE_URL
value: https://miniflux.janky.solutions
- name: HTTPS
value: "1"
- name: MEDIA_PROXY_MODE
value: all
- name: METRICS_COLLECTOR
value: "1"
- name: METRICS_ALLOWED_NETWORKS
value: 10.42.0.0/16
- name: OAUTH2_PROVIDER
value: oidc
- name: OAUTH2_OIDC_DISCOVERY_ENDPOINT
value: https://auth-next.janky.solutions/realms/janky.solutions
- name: OAUTH2_REDIRECT_URL
value: https://miniflux.janky.solutions/oauth2/oidc/callback
- name: OAUTH2_CLIENT_ID
value: miniflux
- name: OAUTH2_USER_CREATION
value: "1"
- name: DISABLE_LOCAL_AUTH
value: "1"
ports:
- name: web
containerPort: 8080

View file

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: miniflux