mealie
by bdclark
Mealie recipe manager and meal planner
About this chart
Mealie Helm Chart
Mealie recipe manager and meal planner
Installing
From repo
helm repo add bdclark https://bdclark.github.io/helm-charts
helm repo update
helm install mealie bdclark/mealie
From source
helm install mealie ./charts/mealie
Uninstall
helm uninstall mealie
Database Configuration
Mealie supports two database engine: SQLite (default) and PostgreSQL.
SQLite (default)
Requirements:
database.engine: sqlitepersistence.enabled: true(SQLite needs persistent storage)replicaCount: 1(SQLite does not support multiple replicas)
This is the default configuration. No additional setup is required.
PostgreSQL
Requirements:
- A running PostgreSQL instance
database.engine: postgres- Configure database connection settings under
database.postgres
Option 1: Full connection URL
Using a complete PostgreSQL connection string:
database:
engine: postgres
postgres:
urlOverride:
value: "postgresql://mealie:[email protected]:5432/mealie"
Using a secret reference for the connection string:
database:
engine: postgres
postgres:
urlOverride:
existingSecret:
name: "mealie-db-secret"
key: "connection-url"
Option 2: Individual connection parameters
Specify each connection parameter separately (any combination of value and
existingSecret can be used):
database:
engine: postgres
postgres:
server:
value: "postgres.example.com"
port:
value: 5432
db:
value: "mealie"
user:
existingSecret:
name: "mealie-db-secret"
key: "username"
password:
existingSecret:
name: "mealie-db-secret"
key: "password"
Update strategy
- Persistence enabled with a single replica or non-RWX storage defaults to
Recreate. - Otherwise, Kubernetes defaults apply unless you set
strategy.
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
Configuration
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 1 | Number of replicas for the mealie deployment SQLite requires a single instance |
| image.repository | string | "ghcr.io/mealie-recipes/mealie" | Image repository |
| image.tag | string | "" | Image tag (defaults to appVersion) |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| imagePullSecrets | list | [] | Image pull secrets for private registries |
| nameOverride | string | "" | Override the chart name |
| fullnameOverride | string | "" | Override the full release name |
| deploymentAnnotations | object | {} | Annotations for the Deployment. |
| extraDeploymentLabels | object | {} | Additional labels for the Deployment. |
| podAnnotations | object | {} | Pod annotations applied to the mealie pod |
| podLabels | object | {} | Pod labels applied to the mealie pod |
| commonLabels | object | {} | Labels to add to all resources. |
| podSecurityContext | object | {} | Pod-level security context |
| securityContext | object | {} | Container-level security context |
| service.type | string | "ClusterIP" | Service type (ClusterIP/LoadBalancer/NodePort) |
| service.port | int | 9000 | Service port |
| ingress.enabled | bool | false | Enable ingress |
| ingress.className | string | "" | Ingress class name |
| ingress.annotations | object | {} | Additional ingress annotations |
| ingress.hosts | list | [{"host":"mealie.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}] | Ingress rules configuration |
| ingress.tls | list | [] | TLS configuration for ingress |
| resources | object | {} | Resource requests and limits |
| persistence.enabled | bool | true | Enable persistence |
| persistence.storageClass | string | "" | Storage class for PVC Set to "-" to disable dynamic provisioning and use default storage class Set to "" to use cluster default storage class |
| persistence.accessModes | list | ["ReadWriteOnce"] | Access modes for the PVC |
| persistence.size | string | "1Gi" | Requested PVC size |
| persistence.existingClaim | string | "" | Use an existing PVC instead of creating a new one If defined, PVC must be created manually before volume will be bound |
| persistence.extraLabels | object | {} | Additional labels for PVCs created by this chart. |
| persistence.annotations | object | {} | Annotations for PVC |
| strategy | object | {} | Deployment update strategy (default: Recreate when persistence enabled and non-RWX or single replica) |
| database.engine | string | "sqlite" | Database engine to use (sqlite/postgres) |
| database.postgres.urlOverride.value | string | "" | PostgreSQL connection URL |
| database.postgres.urlOverride.existingSecret.name | string | "" | Secret reference for connection URL |
| database.postgres.urlOverride.existingSecret.key | string | "" | Key in the secret for connection URL |
| database.postgres.server.value | string | "" | PostgreSQL server/host address |
| database.postgres.server.existingSecret.name | string | "" | Secret reference for server/host |
| database.postgres.server.existingSecret.key | string | "" | Key in the secret for server/host |
| database.postgres.port.value | int | 5432 | PostgreSQL server/host port |
| database.postgres.port.existingSecret.name | string | "" | Secret reference for port |
| database.postgres.port.existingSecret.key | string | "" | Key in the secret for port |
| database.postgres.db.value | string | "mealie" | PostgreSQL database name |
| database.postgres.db.existingSecret.name | string | "" | Secret reference for database name |
| database.postgres.db.existingSecret.key | string | "" | Key in the secret for database name |
| database.postgres.user.value | string | "" | PostgreSQL username |
| database.postgres.user.existingSecret.name | string | "" | Secret reference for username |
| database.postgres.user.existingSecret.key | string | "" | Key in the secret for username |
| database.postgres.password.value | string | "" | PostgreSQL password |
| database.postgres.password.existingSecret.name | string | "" | Secret reference for password |
| database.postgres.password.existingSecret.key | string | "" | Key in the secret for password |
| extraEnv | list | [] | Extra environment variables for the container |
| extraEnvFrom | list | [] | Extra environment variable sources (ConfigMap/Secret refs) |
| livenessProbe | object | {"httpGet":{"path":"/","port":"http"}} | Liveness probe configuration |
| readinessProbe | object | {"httpGet":{"path":"/","port":"http"}} | Readiness probe configuration |
| startupProbe | object | {} | Startup probe configuration |
| volumeMounts | list | [] | Extra volume mounts for the container |
| nodeSelector | object | {} | Node selector for scheduling |
| tolerations | list | [] | Pod tolerations |
| affinity | object | {} | Pod affinity/anti-affinity |
Contributing
- Bump
version/appVersioninChart.yamlfor any change. - Keep unit tests (
charts/mealie/tests/) up to date. - Run
task verify-chart CHART=mealiebefore opening a PR.
License
MIT — see LICENSE.
Deploy mealie with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has mealie on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmealie is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply