mealie

by bdclark

Helm chartv0.2.0App v3.31.0MITVerified publisher

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: sqlite
  • persistence.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

KeyTypeDefaultDescription
replicaCountint1Number of replicas for the mealie deployment SQLite requires a single instance
image.repositorystring"ghcr.io/mealie-recipes/mealie"Image repository
image.tagstring""Image tag (defaults to appVersion)
image.pullPolicystring"IfNotPresent"Image pull policy
imagePullSecretslist[]Image pull secrets for private registries
nameOverridestring""Override the chart name
fullnameOverridestring""Override the full release name
deploymentAnnotationsobject{}Annotations for the Deployment.
extraDeploymentLabelsobject{}Additional labels for the Deployment.
podAnnotationsobject{}Pod annotations applied to the mealie pod
podLabelsobject{}Pod labels applied to the mealie pod
commonLabelsobject{}Labels to add to all resources.
podSecurityContextobject{}Pod-level security context
securityContextobject{}Container-level security context
service.typestring"ClusterIP"Service type (ClusterIP/LoadBalancer/NodePort)
service.portint9000Service port
ingress.enabledboolfalseEnable ingress
ingress.classNamestring""Ingress class name
ingress.annotationsobject{}Additional ingress annotations
ingress.hostslist[{"host":"mealie.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress rules configuration
ingress.tlslist[]TLS configuration for ingress
resourcesobject{}Resource requests and limits
persistence.enabledbooltrueEnable persistence
persistence.storageClassstring""Storage class for PVC Set to "-" to disable dynamic provisioning and use default storage class Set to "" to use cluster default storage class
persistence.accessModeslist["ReadWriteOnce"]Access modes for the PVC
persistence.sizestring"1Gi"Requested PVC size
persistence.existingClaimstring""Use an existing PVC instead of creating a new one If defined, PVC must be created manually before volume will be bound
persistence.extraLabelsobject{}Additional labels for PVCs created by this chart.
persistence.annotationsobject{}Annotations for PVC
strategyobject{}Deployment update strategy (default: Recreate when persistence enabled and non-RWX or single replica)
database.enginestring"sqlite"Database engine to use (sqlite/postgres)
database.postgres.urlOverride.valuestring""PostgreSQL connection URL
database.postgres.urlOverride.existingSecret.namestring""Secret reference for connection URL
database.postgres.urlOverride.existingSecret.keystring""Key in the secret for connection URL
database.postgres.server.valuestring""PostgreSQL server/host address
database.postgres.server.existingSecret.namestring""Secret reference for server/host
database.postgres.server.existingSecret.keystring""Key in the secret for server/host
database.postgres.port.valueint5432PostgreSQL server/host port
database.postgres.port.existingSecret.namestring""Secret reference for port
database.postgres.port.existingSecret.keystring""Key in the secret for port
database.postgres.db.valuestring"mealie"PostgreSQL database name
database.postgres.db.existingSecret.namestring""Secret reference for database name
database.postgres.db.existingSecret.keystring""Key in the secret for database name
database.postgres.user.valuestring""PostgreSQL username
database.postgres.user.existingSecret.namestring""Secret reference for username
database.postgres.user.existingSecret.keystring""Key in the secret for username
database.postgres.password.valuestring""PostgreSQL password
database.postgres.password.existingSecret.namestring""Secret reference for password
database.postgres.password.existingSecret.keystring""Key in the secret for password
extraEnvlist[]Extra environment variables for the container
extraEnvFromlist[]Extra environment variable sources (ConfigMap/Secret refs)
livenessProbeobject{"httpGet":{"path":"/","port":"http"}}Liveness probe configuration
readinessProbeobject{"httpGet":{"path":"/","port":"http"}}Readiness probe configuration
startupProbeobject{}Startup probe configuration
volumeMountslist[]Extra volume mounts for the container
nodeSelectorobject{}Node selector for scheduling
tolerationslist[]Pod tolerations
affinityobject{}Pod affinity/anti-affinity

Contributing

  • Bump version/appVersion in Chart.yaml for any change.
  • Keep unit tests (charts/mealie/tests/) up to date.
  • Run task verify-chart CHART=mealie before 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartmealie is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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