Need example using sqlite with chart. #388
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The chart documentation doesn't even contain the word
sqlite. Hopefully someone can point me in the right direction.I've dug into previous issues such as #95 and #124 trying to get something working.
I've not been able to get the init container passed this:
My values yaml:
The helm chart runs by default with postgres. What is your motivation for sqlite here? sqlite does not work AFAIK when using multiple replicas (which is not fully supported anyhow right now).
For a dev deployment you can just use the default chart config.
For a prod deployment you are most often better off using an external postgres DB (for backups etc.).
Thanks for the response. I took a closer look at the Helm chart and it looks like the previous support added (that I referenced above) has since been removed. However, when you scroll through the Chart history there is nothing about Sqlite support being removed.
I use Gitea for work at home development / homelab kubernetes / GitOps workflows. I have about a dozen repositories with about 2,000 commits so far. Some repositories are push replicated to GitHub.
My SQlite3 database is 1.6MB and under 50MB of disk space consumed of a 5Gib ceph-block PVC. Even the default chart with its database is just beyond overkill (but appreciated for when its needed).
If anyone else is looking for just Sqlite3 support, I put together a Kustomize and an optional ArgoCD Application Deployment wrapper for Gitea:
https://github.com/reefland/ansible-k3s-argocd-renovate/tree/master/_extra_apps/gitea-argocd-kustomize
Just the basics:
Thanks again. Closing issue.
I can't comment on that since I haven't been contributing at this point in time.
In DB standards, this is "tiny". It's not about "overkill" here but about avoiding a potential migration once the DB grows larger.
May I ask what your primary motivation wanting to use sqlite instead of the preconfigured postgres? Postgres does not need that much more memory and if you're on k8s you should have more than one node available anyway.
Especially k8s installs are often used in PROD with a much higher workload. Sqlite is the default when running Gitea in plain docker.
I'm using Kubernetes 1.25 on the pinned version of PostGres in the Gitea Helm Chart is not supported on this version.
I looked at suggested resources of doing my own external database install and they suggested 10G of disk and think something like 1 gig of RAM as an initial install.
It's not a lot, the added resources and complexity is just not needed for my use case. I had no problem with Gitea / SQLlite3 that needed to be solved by adding Postgres.
I've been using it under docker for many years, it has served me very well. Now it is migrated to Kubernetes and still working great.
BTW - There pretty much was no decent Grafana dashboards for Gitea. I made one and tossed it up of Grafana's web site:
https://grafana.com/grafana/dashboards/17802-gitea-server-monitor/