Skip to main content

Miniflux on GKE Autopilot

Miniflux on GKE Autopilot

Miniflux is a minimalist, self-hosted RSS/Atom feed reader — a single static Go binary that stores all state in PostgreSQL. This module deploys Miniflux on GKE Autopilot on top of the App_GKE foundation, which provisions and manages the shared Google Cloud and Kubernetes infrastructure.

This guide focuses on the cloud services Miniflux uses and how to explore and operate them from the Google Cloud Console and the command line. For the mechanics that are common to every GKE application — Workload Identity, ingress, autoscaling, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC Service Controls, backups, and the deployment lifecycle — refer to the App_GKE foundation guide rather than repeating them here.


What Miniflux costs on RAD, and how that compares​

Running Miniflux in your own GCP project costs about $136.37/month in Google Cloud charges; RAD's module fee is a one-time 175 credits (or 157.5 credits in a RAD-managed project), covering setup and support -- not the ongoing cloud bill, which Google bills you directly in your own project or RAD meters hourly in credits in a RAD-managed one. Or see the Cloud Run guide for the alternative deployment target; either way, if you deploy into a RAD-managed project you can pause the whole thing for free when you are not using it -- see Pause it for free below.

What you pay on RAD​

Your own projectRAD-managed project
Module fee175 credits, once157.5 credits, once (10% lower)
Build timemetered in credits as the build runs (a few credits, typically)same
Google Cloud running cost~$136.37/month, billed to your own billing account at Google's list price~105 credits/day, metered hourly by RAD at list price plus margin

Default running cost in your own project

ResourceUS$/month (Google list price, us-central1)
GKE Autopilot pod, 2x vCPU / 4 GiB$79.35
Cloud SQL for PostgreSQL, 1 vCPU / 3.75 GB, zonal, 10 GB SSD$51.02
Cloud NAT and networking$5.00
Cloud Storage (add-ons, backups)$1.00
GKE cluster management feeshared across every GKE app in the project; $0 if this is your only cluster, else ~$73
Total$136.37

How it compares​

  • the project's own official hosted instance costs $15/year (about $1.25/month) (source: https://miniflux.app/#pricing), run by the project itself with no infrastructure to operate -- the comparison that matters here is less the sticker price and more whether you want the vendor's own cloud or your own GCP project with RAD managing it.
  • Running it yourself on a bare VPS is still the cheapest cash option -- Hetzner CPX22 (2 vCPU/4GB) runs about $24/month, a DigitalOcean 2 vCPU/4GB Droplet is also $24/month, and a GCP Compute Engine e2-standard-2 (2 vCPU/8GB) is about $49/month -- plus the admin's own time for backups, security patches and upgrades, which RAD's managed Cloud SQL, Secret Manager and monitoring cover for you -- but RAD's price is never meant to beat a VPS, only to replace the admin time a VPS still needs.
  • Either way, this is a single-user feed reader, so the running cost above is what actually drives the bill, not the module fee -- and that running cost is the one you can pause (see below).

Pause it for free: delete a RAD-managed project, restore it when you need it​

This is the headline for a RAD-managed project. Deleting a RAD-managed project first unlinks its billing, then asks Google to delete the project outright -- Google's own 30-day recoverable soft delete. Unlike deleting one module, this does not tear down Cloud SQL, any VM or the compute resource one by one: the whole project simply stops, and nothing is charged while it waits, because billing is already unlinked.

Restoring, within 30 days and only by the project's owner, asks Google to undelete the project and reattaches its billing account, then asks you to run Update on each deployment to confirm everything came back. Because nothing was individually destroyed, that Update finds the same resources already there -- it is a check, not a rebuild, and an Update never charges the module fee again. This costs only a handful of credits (under US$1) in total for a typical 2-3-deployment chain.

What this needs: you must own the project (not one RAD only manages billing for), you must restore it yourself within 30 days -- after that Google deletes it for good -- and restoring is admitted like creating a new project, so your purchased credit balance must still clear the tier's floor (100 credits for the sandbox tier most study/demo use fits). Google says most services are fully working again within 36 hours of a restore.

One real gap: nightly backups are written to a bucket inside the project, and that bucket has Cloud Storage's soft-delete explicitly turned off, so it is very likely gone as soon as you delete the project -- even though the project itself is recoverable for 30 days. If you have customised the app and want to keep that work, copy a backup out (to Google Drive, or a bucket outside the project) before deleting. For a default install with nothing irreplaceable in it, this does not matter.

Pay only while you use it, the other way: delete and redeploy​

In your own project (or once you are past the 30-day restore window above), the alternative is to delete Miniflux outright and redeploy it later. A redeploy costs the module fee again, plus the builds -- roughly 175 + 3-6 credits of build time.

Deleting saves money only once Miniflux would otherwise sit unused long enough to clear that redeploy cost against its own daily running cost -- against the own-project total above, that works out to about 4 days or more. Most of the running cost here is usually the database; it stops only when nothing else in the project uses it, so deleting this app while something else shares the project saves only this app's own compute part.

Keep data first: nightly backups go to a bucket inside the deployment and are deleted with it, so copy the latest backup out before deleting if you want to keep it.

Lab sessions and Managed Environments​

  • Lab sessions, for training: a trainer runs a session for a class. Each participant gets the app in their own Google Cloud project for 15 minutes to 24 hours, within an allowance the trainer sets. Either the trainer funds every place, or each participant pays for their own. Everything is deleted when the session ends and unused credits go back to the trainer.
  • Managed Environments, for consultancies: a partner runs the app for a client from a ring-fenced wallet it funds, and settles with the client directly. If the wallet runs low, billing pauses and the data is kept, so nobody receives an unexpected charge. At the end the partner hands the project over and the deployments become the client's own.
  • Credits can be bought in more than 20 currencies, including XAF, XOF, NGN, GHS, KES and ZAR, by card, bank transfer or mobile money.

Sources (8 October 2026): Google Cloud Billing Catalog API list prices; radmodules.dev/pricing for RAD's own fees and daily-credit estimates; https://cloud.google.com/resource-manager/docs/delete-restore-projects for the pause/restore mechanics; https://miniflux.app/#pricing for the named competitor's price.

1. Overview​

Miniflux runs as a single-container Go web workload. The deployment wires together a focused set of Google Cloud services:

CapabilityGoogle Cloud serviceNotes
ComputeGKE AutopilotSingle Go binary in a Deployment, horizontally autoscaled between min/max replicas
DatabaseCloud SQL for PostgreSQL 15Required — Miniflux stores all state here; no MySQL/other engine
Object storageCloud Storage (none)Miniflux needs no bucket; an optional Filestore NFS mount is available but unused by default
Cache & queueNoneMiniflux has no Redis dependency and no separate worker
SecretsSecret ManagerAuto-generated ADMIN_PASSWORD (initial owner); database password
IngressCloud Load BalancingExternal LoadBalancer with ClientIP session affinity, optional custom domain + managed certificate

Sensible defaults worth knowing up front:

  • PostgreSQL 15 is mandatory. The database engine is fixed by the shared application layer; selecting any other engine breaks startup.
  • The feed poller runs in-process. Miniflux has no separate worker — the same pod serves the UI and refreshes feeds on POLLING_FREQUENCY. Keep at least one replica running so polling continues (GKE does not scale to zero).
  • The initial owner is seeded, not self-registered. CREATE_ADMIN = 1 seeds the admin account from the ADMIN_PASSWORD secret on first boot; open self-service signup stays off. Retrieve the password from Secret Manager to log in.
  • Schema migrations run on boot (RUN_MIGRATIONS = 1) — there is no separate migrate job, so upgrading the version applies schema changes automatically.
  • No Redis. enable_redis = false — Miniflux keeps every feed, entry, and session in PostgreSQL. Leave it off. Because there is no shared queue, running multiple replicas simply shares request load (each still polls independently).
  • Session affinity is ClientIP. Keeps a client pinned to one pod for a consistent UI session.
  • DATABASE_URL is composed at runtime by the container entrypoint (libpq keyword/value form), branching on the GKE Auth Proxy loopback (127.0.0.1, sslmode=disable) so the same image works on Cloud Run and GKE.

2. Google Cloud Services & How to Explore Them​

All commands assume you have run gcloud container clusters get-credentials <cluster> --region <region> --project <project> and that PROJECT, REGION, and NAMESPACE are set. The namespace and other identifiers are reported in the deployment Outputs.

A. GKE Autopilot — the Miniflux workload​

Miniflux pods run as a Deployment on Autopilot listening on port 8080, billed for the CPU/memory they request. Horizontal Pod Autoscaling sizes the deployment between the minimum and maximum replica counts.

  • Console: Kubernetes Engine → Workloads → select the Miniflux workload to see pods, revisions, and events. Kubernetes Engine → Services & Ingress shows the external IP.
  • CLI:
    kubectl get pods,svc,hpa -n "$NAMESPACE"
    kubectl logs -n "$NAMESPACE" deploy/<service-name> --tail=100
    kubectl describe hpa -n "$NAMESPACE" # current vs target utilisation

See App_GKE for how Autopilot, scaling, and the workload type (Deployment vs StatefulSet) are managed.

B. Cloud SQL for PostgreSQL 15​

Miniflux stores all application data (feeds, entries, users, sessions, categories) in a managed Cloud SQL for PostgreSQL 15 instance. Pods reach it privately through the Cloud SQL Auth Proxy sidecar over loopback (127.0.0.1); no public IP is exposed. On first deploy the db-init Job creates the miniflux database and role and installs the hstore extension owned by the app role.

  • Console: SQL → select the instance for connections, backups, flags, metrics.
  • CLI:
    gcloud sql instances list --project "$PROJECT"
    gcloud sql instances describe <instance-name> --project "$PROJECT"
    # Open an interactive shell to inspect schema/data:
    gcloud sql connect <instance-name> --user=miniflux --database=miniflux --project "$PROJECT"

The instance name, database, user, and password secret are surfaced in the Outputs. For the connection model, automated backups, and password rotation, see App_GKE.

C. Cloud Storage / NFS​

Miniflux needs no object storage — it keeps all state in PostgreSQL, so no data bucket is provisioned by the application layer. The optional Cloud Filestore mount (enable_nfs, at /opt/miniflux/storage) is off by default, because Miniflux never writes to it.

  • Console: Filestore → Instances (if NFS is enabled); Cloud Storage → Buckets.
  • CLI:
    gcloud filestore instances list --project "$PROJECT"
    gcloud storage buckets list --project "$PROJECT"

See App_GKE for CMEK options and GCS Fuse mounts.

D. Secret Manager​

One secret is generated automatically: ADMIN_PASSWORD — the initial owner password seeded into Miniflux on first boot. The database password is managed separately by the foundation.

  • Console: Security → Secret Manager.
  • CLI:
    gcloud secrets list --project "$PROJECT" --filter="name~miniflux"
    gcloud secrets versions access latest --secret=<secret-name> --project "$PROJECT"

The database password secret name is in the Outputs. See App_GKE for the Secret Store CSI integration and rotation.

E. Networking & ingress​

By default the workload is exposed through an external Cloud Load Balancing IP with ClientIP session affinity. A custom domain with a Google-managed certificate can be enabled, and a static IP can be reserved so the address survives redeploys. When a custom domain is used, set BASE_URL so Miniflux emits correct absolute links.

  • Console: Network services → Load balancing; VPC network → IP addresses.
  • CLI:
    kubectl get ingress,svc -n "$NAMESPACE"
    gcloud compute addresses list --project "$PROJECT"

See App_GKE for custom domains, Cloud CDN, and static IP details.

F. Cloud Logging & Monitoring​

Pod stdout/stderr flow to Cloud Logging; GKE and Cloud SQL metrics flow to Cloud Monitoring. Optional uptime checks and alert policies are available. The entrypoint logs its DATABASE_URL connection mode at start — useful when diagnosing DB connectivity.

  • Console: Logging → Logs Explorer; Monitoring → Dashboards / Alerting.
  • CLI:
    gcloud logging read 'resource.type="k8s_container" AND resource.labels.namespace_name="'"$NAMESPACE"'"' \
    --project "$PROJECT" --limit 50

3. Miniflux Application Behaviour​

  • First-deploy database setup. The db-init Job runs db-init.sh using postgres:15-alpine. It connects through the Cloud SQL Auth Proxy and idempotently creates the miniflux database and role, grants privileges, re-owns the public schema, and installs the hstore extension owned by the app role (so Miniflux migration v119, which drops hstore, succeeds). The job then posts to the proxy sidecar's /quitquitquit so the Job pod completes; it is safe to re-run.
  • Schema migrations on boot. The entrypoint sets RUN_MIGRATIONS=1, so Miniflux applies its own schema migrations on every start — no separate migrate step. Allow extra time on the first boot for the initial schema build.
  • Initial owner is seeded. CREATE_ADMIN=1 seeds the admin account (ADMIN_USERNAME) from the ADMIN_PASSWORD secret. It is idempotent — later boots log "user already exists". Retrieve the password to log in:
    gcloud secrets versions access latest \
    --secret=secret-<resource-prefix>-miniflux-admin-password --project "$PROJECT"
  • Health path. This module's startup and liveness probes default to HTTP / (the login page, an unauthenticated 200 OK). Miniflux also serves an unauthenticated 200 OK at /healthcheck if you prefer a dedicated probe path. Do not point probes at authenticated pages.
  • The feed poller is in-process. Feeds refresh on POLLING_FREQUENCY inside each pod. Keep min_instance_count >= 1 so polling runs; extra replicas each poll independently (there is no shared queue to coordinate them).
  • BASE_URL drives absolute links. It defaults to the injected internal service URL; set it explicitly (via environment_variables) to the external LoadBalancer or custom-domain URL once the address is known.
  • Inspect the db-init job and pods:
    kubectl get jobs -n "$NAMESPACE"
    kubectl logs -n "$NAMESPACE" job/<job-name>

4. Configuration Variables​

Variables are grouped exactly as they appear on the deployment platform. Only settings specific to or notable for Miniflux are listed; every other input is inherited from App_GKE with its standard behaviour and defaults.

Group 1 — Project & Identity​

VariableDefaultDescription
project_id(required)Target Google Cloud project.
regionus-central1Region for the workload and regional resources.

All other inputs follow standard App_GKE behaviour.

Group 2 — Deployment Environment​

VariableDefaultDescription
tenant_iddemoShort suffix that makes resource names unique per environment.
support_users[]Emails granted project access and monitoring alerts.
resource_labels{}Labels applied to all resources for cost/ownership tracking.

All other inputs follow standard App_GKE behaviour.

Group 3 — Application Identity​

VariableDefaultDescription
application_nameminifluxBase name for resources. Do not change after first deploy.
application_versionlatestMiniflux image tag; pin to a release (e.g. 2.2.15) in production.

All other inputs follow standard App_GKE behaviour.

Group 4 — Runtime & Scaling​

VariableDefaultDescription
deploy_applicationtrueSet false to provision infrastructure only.
min_instance_count1Minimum replicas; keep at 1 so the feed poller keeps running.
max_instance_count5Maximum replicas. Miniflux has no shared queue — extra pods share request load only.
container_port8080Miniflux listens on 8080.
timeout_seconds300Maximum request duration (0–3600 seconds).
enable_cloudsql_volumetrueCloud SQL Auth Proxy sidecar for connectivity (required on GKE).
enable_image_mirroringtrueMirror the Miniflux image into Artifact Registry before deployment.

All other inputs follow standard App_GKE behaviour.

Group 5 — Environment Variables & Secrets​

VariableDefaultDescription
environment_variables{}Extra non-secret settings (e.g. BASE_URL, POLLING_FREQUENCY). Do not set DATABASE_URL (composed at runtime).
secret_environment_variables{}Map of env var → Secret Manager secret name.
secret_propagation_delay30Seconds to wait after secret creation before proceeding.
secret_rotation_period2592000sSecret Manager rotation notification frequency.

All other inputs follow standard App_GKE behaviour.

Group 6 — GKE Backend & Cluster​

VariableDefaultDescription
service_typeLoadBalancerHow the Kubernetes Service is exposed.
workload_typenullAuto-resolves to a stateless Deployment (Miniflux stores all state in PostgreSQL — no StatefulSet needed).
session_affinityClientIPPin a client to one pod for a consistent UI session.
container_protocolhttp1Standard HTTP/1.1.
termination_grace_period_seconds60Seconds to wait after SIGTERM before SIGKILL.

All other inputs follow standard App_GKE behaviour.

Group 7 — StatefulSet​

VariableDefaultDescription
stateful_pvc_enablednullLeave off — Miniflux keeps all state in PostgreSQL, so no per-pod PVC is required.

All other inputs follow standard App_GKE behaviour.

Group 9 — Reliability Policies​

VariableDefaultDescription
enable_pod_disruption_budgettrueProtect availability during node upgrades.
pdb_min_available1Minimum pods available during voluntary disruptions.

All other inputs follow standard App_GKE behaviour.

Group 10 — Observability & Health​

VariableDefaultDescription
startup_probeHTTP /, 60s delay, 15s period, 30 failuresStartup probe. Generous window for first-boot migrations.
liveness_probeHTTP /, 60s delay, 30s periodLiveness probe.
uptime_check_configdisabledOptional Cloud Monitoring uptime check; enable for production monitoring.
alert_policies[]Optional metric alert policies.

All other inputs follow standard App_GKE behaviour.

Group 11 — Jobs & Scheduled Tasks​

VariableDefaultDescription
initialization_jobs[]Leave empty to use the built-in db-init job (role/database/hstore).
cron_jobs[]Optional scheduled Kubernetes CronJobs.
additional_services[]Sidecar or helper services deployed alongside Miniflux.

All other inputs follow standard App_GKE behaviour.

Group 12 — Database Backend​

VariableDefaultDescription
database_typePOSTGRES_15Fixed — Miniflux requires PostgreSQL.
application_database_nameminifluxPostgreSQL database name. Immutable after first deploy.
application_database_userminifluxApplication database user. Immutable after first deploy.
database_password_length32Generated password length (16–64).

All other inputs follow standard App_GKE behaviour.

Group 13 — Filesystem (NFS)​

VariableDefaultDescription
enable_nfsfalseProvisions a Filestore NFS mount at /opt/miniflux/storage. Leave off — Miniflux stores state in PostgreSQL and never writes to the mount.
nfs_mount_path/opt/miniflux/storageMount path inside the container.

All other inputs follow standard App_GKE behaviour.

Group 14 — Cloud Storage & Artifact Registry​

VariableDefaultDescription
create_cloud_storagetrueCreate GCS buckets defined in storage_buckets.
storage_buckets[{ name_suffix = "data" }]One data bucket is declared by default; extend the list if you need more.
gcs_volumes[]GCS Fuse volume mounts via the CSI driver.
max_images_to_retain / delete_untagged_images / image_retention_days(set)Artifact Registry cleanup policy.

All other inputs follow standard App_GKE behaviour.

Group 15 — Redis Cache & Queue​

VariableDefaultDescription
enable_redisfalseMiniflux does not use Redis — leave off.
redis_host / redis_port / redis_auth"" / 6379 / ""Unused by Miniflux.

All other inputs follow standard App_GKE behaviour.

Group 17 — Backup & Maintenance​

backup_schedule, backup_retention_days, enable_backup_import, backup_source, backup_uri, backup_format — automated Cloud SQL backup and restore-on-deploy. See App_GKE.

Group 19 — Custom Domain, Static IP & Networking​

VariableDefaultDescription
enable_custom_domaintrueProvision Ingress for custom hostnames + managed certificate (a Gateway with a static IP is provisioned automatically).
application_domains[]Hostnames to serve (set BASE_URL to match).
reserve_static_iptrueStable external IP across redeploys.

All other inputs follow standard App_GKE behaviour.

Group 20 — Identity-Aware Proxy (IAP)​

VariableDefaultDescription
enable_iapfalseRequire Google sign-in in front of Miniflux (blocks Fever/Reader-API token clients).
iap_authorized_users / iap_authorized_groups[]Who may access.
iap_oauth_client_id / iap_oauth_client_secret""Required when IAP is enabled (sensitive).

All other inputs follow standard App_GKE behaviour.

Group 21 — Cloud Armor​

enable_cloud_armor, admin_ip_ranges, cloud_armor_policy_name, enable_cdn — attach a WAF policy / CDN to the Ingress backend. See App_GKE.

Group 22 — VPC Service Controls & Audit Logging​

enable_vpc_sc, vpc_cidr_ranges, vpc_sc_dry_run, enable_audit_logging — see App_GKE.


5. Outputs​

These values are returned on a successful deployment and are the quickest way to locate and explore the running resources.

OutputDescription
service_nameKubernetes Service name.
namespaceNamespace the workload runs in.
service_cluster_ipIn-cluster ClusterIP.
stage_service_cluster_ipsMap of ClusterIPs for stage-specific services.
service_external_ipExternal LoadBalancer IP (when a static IP is reserved).
service_urlURL to reach Miniflux.
database_instance_nameCloud SQL instance name.
database_nameApplication database name (miniflux).
database_userApplication database user (miniflux).
database_password_secretSecret Manager secret holding the DB password.
database_host / database_portDB endpoint (127.0.0.1 via the Auth Proxy) / port.
storage_bucketsCreated Cloud Storage buckets (a data bucket by default).
network_name / network_exists / regionsVPC network, presence, available regions.
container_image / container_registryDeployed image and Artifact Registry repo.
monitoring_enabled / monitoring_notification_channelsMonitoring status and channels.
initialization_jobs / db_import_jobNames of the setup (db-init) and (optional) import jobs.
deployment_id / tenant_id / resource_prefixNaming identifiers.
project_id / project_numberProject identifiers.
cicd_enabled / cicd_configurationCI/CD status and details (repo, trigger, registry).
github_repository_url / github_repository_owner / github_repository_nameCI/CD GitHub details.
artifact_registry_repository / cloudbuild_trigger_name / cloudbuild_trigger_idRegistry and build trigger.
kubernetes_readyWhether the cluster/workload is ready.
vpc_sc_enabled / vpc_sc_perimeter_name / vpc_sc_dry_run_modeVPC-SC status.
audit_logging_enabled / artifact_registry_cmek_enabledAudit logging and CMEK status.

6. Configuration Pitfalls & Sensible Defaults​

Risk: Critical (data loss / outage / security) — High (service degraded) — Medium (cost or partial degradation) — Low (minor).

Inherited plan-time validation. This module passes its configuration through the App_GKE foundation engine, which validates values and combinations at plan time — a Deployment workload with stateful_pvc_enabled = true, IAP with no authorized identities, a gen1 runtime with NFS/GCS mounts, a database_type that does not match an enabled extension, bare-integer quota_memory_* values. Invalid configuration fails the plan with a clear, named error before any resource is created, so most mistakes below are caught up front rather than at apply or runtime.

SettingSensible valueRiskConsequence if wrong
database_typePOSTGRES_15CriticalMiniflux only supports PostgreSQL; any other engine breaks startup.
application_database_name / application_database_userSet once (miniflux)CriticalImmutable after first deploy; renaming recreates the DB/user and destroys all feeds and entries.
enable_backup_importfalse unless restoringCriticalEnabling without a valid backup source fails the import job.
ADMIN_PASSWORD (auto-generated)Retrieve from Secret ManagerHighIt is the only owner credential seeded on first boot; without it you cannot log in until you reset it in the DB.
enable_cloudsql_volumetrueHighThe Auth Proxy sidecar is required for PostgreSQL connectivity on GKE; disabling it breaks the DB connection.
min_instance_count1HighGKE requires min ≥ 1; keeping 1 ensures the in-process feed poller keeps refreshing.
enable_redisfalseMediumRedis is unused; enabling it wastes resources and changes nothing.
session_affinityClientIPMediumWithout stickiness a client's requests hop pods, disrupting the UI session.
startup_probe.path/healthcheckHighPointing the probe at an authenticated page returns 401/403 and the pod never becomes Ready.
enable_iapoff unless UI must be gatedMediumIAP fronts the UI/API with Google sign-in, blocking Fever/Reader-API token clients.
BASE_URL (env)External LoadBalancer / domain URLMediumA stale/wrong base URL yields broken absolute links and feed-proxy image URLs.
quota_memory_requests / _limitsbinary units (4Gi, 8192Mi)CriticalBare integers are bytes and block all pod scheduling in the namespace.
enable_pod_disruption_budgettrueMediumDisabling allows GKE to evict all pods simultaneously during maintenance.
backup_retention_days7 (raise for prod)MediumToo short for compliance retention.

For the foundation behaviour referenced throughout — IAM and Workload Identity, autoscaling, ingress and certificates, CI/CD, Cloud Armor, IAP, Binary Authorization, VPC-SC, backups, and image mirroring — see App_GKE. Miniflux-specific application configuration shared with the Cloud Run variant is described in Miniflux_Common.

Need RAD to do something it does not do yet? Request it on the roadmap, or vote on what is already there.