mealie

by rtomik

Helm chartv0.0.2App v3.2.1Verified publisher

Mealie helm chart for Kubernetes - Recipe management and meal planning

About this chart

Mealie Helm Chart

A Helm chart for deploying Mealie recipe management and meal planning application on Kubernetes.

Introduction

This chart deploys Mealie on a Kubernetes cluster using the Helm package manager. Mealie is a self-hosted recipe manager and meal planner with a RestAPI backend and a reactive frontend application built in Vue for a pleasant user experience for the whole family.

Source code can be found here:

  • https://github.com/rtomik/helm-charts/tree/main/charts/mealie

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • PV provisioner support in the underlying infrastructure (if persistence is needed)
  • External Postgresql DB like https://cloudnative-pg.io/

Installing the Chart

To install the chart with the release name mealie:

$ helm repo add mealie-chart https://rtomik.github.io/helm-charts
$ helm install mealie mealie-chart/mealie

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the mealie deployment:

$ helm uninstall mealie

Parameters

Global parameters

NameDescriptionValue
nameOverrideString to partially override the release name""
fullnameOverrideString to fully override the release name""

Image parameters

NameDescriptionValue
image.repositoryMealie image repositoryghcr.io/mealie-recipes/mealie
image.tagMealie image tagv3.1.1
image.pullPolicyMealie image pull policyIfNotPresent

Deployment parameters

NameDescriptionValue
replicaCountNumber of Mealie replicas1
revisionHistoryLimitNumber of revisions to retain for rollback3
podSecurityContext.runAsNonRootRun containers as non-root userfalse
podSecurityContext.runAsUserUser ID for the container911
podSecurityContext.fsGroupGroup ID for the container filesystem911
containerSecurityContextSecurity context for the containerSee values.yaml
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}

Service parameters

NameDescriptionValue
service.typeKubernetes Service typeClusterIP
service.portService HTTP port9000

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress record generationfalse
ingress.classNameIngressClass name""
ingress.annotationsAdditional annotations for the IngressSee values.yaml
ingress.hostsArray of host and path objectsSee values.yaml
ingress.tlsTLS configurationSee values.yaml

Persistence parameters

NameDescriptionValue
persistence.enabledEnable persistence using PVCtrue
persistence.storageClassPVC Storage Class""
persistence.accessModePVC Access ModeReadWriteOnce
persistence.sizePVC Size5Gi
persistence.annotationsAnnotations for PVC{}

Environment variables

NameDescriptionValue
env.PUIDUserID permissions between host OS and container911
env.PGIDGroupID permissions between host OS and container911
env.DEFAULT_GROUPThe default group for usersHome
env.DEFAULT_HOUSEHOLDThe default household for users in each groupFamily
env.BASE_URLUsed for Notificationshttp://localhost:9000
env.TOKEN_TIMEThe time in hours that a login/auth token is valid48
env.API_PORTThe port exposed by backend API9000
env.API_DOCSTurns on/off access to the API documentationtrue
env.TZMust be set to get correct date/time on the serverUTC
env.ALLOW_SIGNUPAllow user sign-up without tokenfalse
env.ALLOW_PASSWORD_LOGINWhether or not to display username+password input fieldstrue
env.LOG_LEVELLogging levelinfo
env.DAILY_SCHEDULE_TIMETime to run daily server tasks (HH:MM)23:45

PostgreSQL configuration

NameDescriptionValue
postgresql.enabledEnable PostgreSQL supportfalse
postgresql.external.enabledUse external PostgreSQL databasefalse
postgresql.external.hostPostgreSQL host""
postgresql.external.portPostgreSQL port5432
postgresql.external.databasePostgreSQL database namemealie
postgresql.external.userPostgreSQL usernamemealie
postgresql.external.passwordPostgreSQL password""
postgresql.external.existingSecretName of existing secret with PostgreSQL credentials""
postgresql.external.userKeyKey in the secret for usernameusername
postgresql.external.passwordKeyKey in the secret for passwordpassword

Email (SMTP) configuration

NameDescriptionValue
email.enabledEnable SMTP email supportfalse
email.hostSMTP host""
email.portSMTP port587
email.fromNameFrom name for emailsMealie
email.authStrategySMTP auth strategy (TLS, SSL, NONE)TLS
email.fromEmailFrom email address""
email.userSMTP username""
email.passwordSMTP password""
email.existingSecretName of existing secret with SMTP credentials""
email.userKeyKey in the secret for SMTP usernamesmtp-user
email.passwordKeyKey in the secret for SMTP passwordsmtp-password

LDAP Authentication

NameDescriptionValue
ldap.enabledEnable LDAP authenticationfalse
ldap.serverUrlLDAP server URL""
ldap.tlsInsecureDo not verify server certificatefalse
ldap.tlsCaCertFilePath to CA certificate file""
ldap.enableStartTlsUse STARTTLS to connect to serverfalse
ldap.baseDnStarting point for user authentication""
ldap.queryBindOptional bind user for LDAP searches""
ldap.queryPasswordPassword for the bind user""
ldap.userFilterLDAP filter to narrow down eligible users""
ldap.adminFilterLDAP filter for admin users""
ldap.idAttributeLDAP attribute for user IDuid
ldap.nameAttributeLDAP attribute for user namename
ldap.mailAttributeLDAP attribute for user emailmail

OpenID Connect (OIDC)

NameDescriptionValue
oidc.enabledEnable OIDC authenticationfalse
oidc.signupEnabledAllow new users via OIDCtrue
oidc.configurationUrlURL to OIDC configuration""
oidc.clientIdOIDC client ID""
oidc.clientSecretOIDC client secret""
oidc.userGroupRequired OIDC user group""
oidc.adminGroupOIDC admin group""
oidc.autoRedirectBypass login page and redirect to IdPfalse
oidc.providerNameProvider name shown in login buttonOAuth
oidc.rememberMeExtend session as if "Remember Me" was checkedfalse
oidc.signingAlgorithmAlgorithm used to sign the id tokenRS256
oidc.userClaimClaim to look up existing user byemail
oidc.nameClaimClaim for user's full namename
oidc.groupsClaimClaim for user groupsgroups

OpenAI Integration

NameDescriptionValue
openai.enabledEnable OpenAI integrationfalse
openai.baseUrlBase URL for OpenAI API""
openai.apiKeyOpenAI API key""
openai.modelOpenAI model to usegpt-4o
openai.customHeadersCustom HTTP headers for OpenAI requests""
openai.customParamsCustom HTTP query params for OpenAI requests""
openai.enableImageServicesEnable OpenAI image servicestrue
openai.workersNumber of OpenAI workers per request2
openai.sendDatabaseDataSend Mealie data to OpenAI to improve accuracytrue
openai.requestTimeoutTimeout for OpenAI requests in seconds60

TLS Configuration

NameDescriptionValue
tls.enabledEnable TLS configurationfalse
tls.certificatePathPath to TLS certificate file""
tls.privateKeyPathPath to TLS private key file""
tls.existingSecretName of existing secret with TLS certificates""
tls.certificateKeyKey in the secret for TLS certificatetls.crt
tls.privateKeyKeyKey in the secret for TLS private keytls.key

Theme Configuration

NameDescriptionValue
theme.light.primaryLight theme primary color#E58325
theme.light.accentLight theme accent color#007A99
theme.light.secondaryLight theme secondary color#973542
theme.light.successLight theme success color#43A047
theme.light.infoLight theme info color#1976D2
theme.light.warningLight theme warning color#FF6D00
theme.light.errorLight theme error color#EF5350
theme.dark.primaryDark theme primary color

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.0.2 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