P4: Miniflux migration + PostgreSQL consolidation #33

Merged
eblume merged 8 commits from feature/p4-miniflux into main 2026-01-20 09:04:48 -08:00
2 changed files with 17 additions and 10 deletions
Showing only changes of commit ad2ad22ccf - Show all commits

Fix miniflux secret to use CNPG-generated password

The miniflux user password is auto-generated by CloudNativePG and stored
in blumeops-pg-app secret. Updated README and secret template to document
the correct setup process.
Erich Blume 2026-01-19 19:14:50 -08:00

View file

@ -14,7 +14,10 @@ RSS/Atom feed reader deployed via ArgoCD.
```bash ```bash
kubectl create namespace miniflux kubectl create namespace miniflux
op inject -i argocd/manifests/miniflux/secret-db.yaml.tpl | kubectl apply -f -
# The miniflux user password is auto-generated by CNPG in blumeops-pg-app secret
kubectl create secret generic miniflux-db -n miniflux \
--from-literal=url="$(kubectl -n databases get secret blumeops-pg-app -o jsonpath='{.data.uri}' | base64 -d)"
``` ```
2. Apply the ArgoCD application: 2. Apply the ArgoCD application:

View file

@ -1,9 +1,13 @@
# Apply with: op inject -i argocd/manifests/miniflux/secret-db.yaml.tpl | kubectl apply -f - # Miniflux database connection secret
apiVersion: v1 #
kind: Secret # The miniflux user password is auto-generated by CloudNativePG and stored in
metadata: # blumeops-pg-app secret in the databases namespace. To create this secret:
name: miniflux-db #
namespace: miniflux # 1. Get the URI from CNPG secret:
type: Opaque # kubectl -n databases get secret blumeops-pg-app -o jsonpath='{.data.uri}' | base64 -d
stringData: #
url: postgres://miniflux:{{ op://vg6xf6vvfmoh5hqjjhlhbeoaie/ns6wylqiuqgczpo7gq2akaxbti/password }}@blumeops-pg-rw.databases.svc.cluster.local:5432/miniflux?sslmode=disable # 2. Create the secret (one-liner):
# kubectl create secret generic miniflux-db -n miniflux \
# --from-literal=url="$(kubectl -n databases get secret blumeops-pg-app -o jsonpath='{.data.uri}' | base64 -d)"
#
# Note: Uses internal k8s DNS hostname (blumeops-pg-rw.databases) not Tailscale