tandoor

by rtomik

Helm chartv0.0.1App 2.3.5Verified publisher

Tandoor Recipes - A recipe management application for Kubernetes

About this chart

Tandoor Recipes Helm Chart

A Helm chart for deploying Tandoor Recipes on Kubernetes.

Tandoor is a recipe management application that allows you to manage your recipes, plan meals, and create shopping lists.

Source code can be found here:

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

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • PV provisioner support in the underlying infrastructure
  • External PostgreSQL database (required - this chart does NOT include PostgreSQL)

Installing the Chart

helm repo add rtomik https://rtomik.github.io/helm-charts
helm repo update
helm install tandoor rtomik/tandoor -f values.yaml

Usage Examples

Minimal Configuration

postgresql:
  host: "postgresql.database.svc.cluster.local"
  database: "tandoor"
  username: "tandoor"
  password: "your-secure-password"

config:
  secretKey:
    value: "your-secret-key-at-least-50-characters-long-for-security-purposes"

Production Configuration

postgresql:
  host: "postgresql.database.svc.cluster.local"
  database: "tandoor"
  username: "tandoor"
  existingSecret: "tandoor-db-secret"
  passwordKey: "password"

config:
  secretKey:
    existingSecret: "tandoor-app-secret"
    secretKey: "secret-key"

  allowedHosts: "tandoor.example.com"
  csrfTrustedOrigins: "https://tandoor.example.com"
  timezone: "Europe/Berlin"

  # Optional: OpenID Connect with Authentik
  # oidc:
  #   enabled: true
  #   providerId: "authentik"
  #   providerName: "Authentik"
  #   clientId: "your-client-id"
  #   clientSecret: "your-client-secret"
  #   serverUrl: "https://authentik.company/application/o/tandoor/.well-known/openid-configuration"

ingress:
  enabled: true
  className: "nginx"
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
  hosts:
    - host: tandoor.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - tandoor.example.com
      secretName: tandoor-tls

persistence:
  staticfiles:
    enabled: true
    # existingClaim: "my-existing-pvc"
    storageClass: "longhorn"
    size: 2Gi
  mediafiles:
    enabled: true
    storageClass: "longhorn"
    size: 10Gi

resources:
  limits:
    cpu: 1000m
    memory: 512Mi
  requests:
    cpu: 100m
    memory: 256Mi

Configuration

All configuration options are based on the official Tandoor documentation: https://docs.tandoor.dev/system/configuration/

The following table lists the configurable parameters and their default values.

Global Parameters

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

Image Parameters

NameDescriptionValue
image.repositoryTandoor image repositoryvabene1111/recipes
image.tagTandoor image tag2.3.5
image.pullPolicyTandoor image pull policyIfNotPresent

Deployment Parameters

NameDescriptionValue
replicaCountNumber of Tandoor replicas1
revisionHistoryLimitNumber of old ReplicaSets to retain3

PostgreSQL Parameters

NameDescriptionValue
postgresql.hostPostgreSQL hostpostgresql.default.svc.cluster.local
postgresql.portPostgreSQL port5432
postgresql.databasePostgreSQL database nametandoor
postgresql.usernamePostgreSQL usernametandoor
postgresql.passwordPostgreSQL password (not recommended for production)""
postgresql.existingSecretExisting secret with PostgreSQL credentials""
postgresql.passwordKeyKey in existing secret for PostgreSQL passwordpostgresql-password

Security Configuration

NameDescriptionValue
config.secretKey.valueDjango secret key (at least 50 characters)""
config.secretKey.existingSecretExisting secret for Django secret key""
config.secretKey.secretKeyKey in existing secret for Django secret keysecret-key
config.allowedHostsAllowed hosts for HTTP Host Header validation*
config.csrfTrustedOriginsCSRF trusted origins""
config.corsAllowOriginsEnable CORS allow all originsfalse

Server Configuration

NameDescriptionValue
config.tandoorPortPort where Tandoor exposes its web server8080
config.gunicornWorkersNumber of Gunicorn worker processes3
config.gunicornThreadsNumber of Gunicorn threads per worker2
config.gunicornTimeoutGunicorn request timeout in seconds30
config.gunicornMediaEnable media serving via Gunicorn0
config.timezoneApplication timezoneUTC
config.scriptNameURL path base for subfolder deployments""
config.sessionCookieDomainSession cookie domain""
config.sessionCookieNameSession cookie identifiersessionid

Feature Configuration

NameDescriptionValue
config.enableSignupAllow user registrationfalse
config.enableMetricsEnable Prometheus metrics at /metricsfalse
config.enablePdfExportEnable recipe PDF exportfalse
config.sortTreeByNameSort keywords/foods alphabeticallyfalse

Social Authentication

NameDescriptionValue
config.socialDefaultAccessSpace ID for auto-joining new social auth users0
config.socialDefaultGroupDefault group for new users (guest/user/admin)guest
config.socialProvidersComma-separated OAuth provider list""
config.socialAccountProvidersSOCIALACCOUNT_PROVIDERS JSON (for complex setups)""

OpenID Connect (OIDC) Configuration

NameDescriptionValue
config.oidc.enabledEnable OpenID Connect authenticationfalse
config.oidc.providerIdProvider ID (e.g., authentik, keycloak)authentik
config.oidc.providerNameDisplay name on login pageAuthentik
config.oidc.clientIdClient ID from OIDC provider""
config.oidc.clientSecretClient Secret from OIDC provider""
config.oidc.serverUrlOpenID Connect well-known configuration URL""

LDAP Configuration

NameDescriptionValue
config.ldap.enabledEnable LDAP authenticationfalse
config.ldap.serverUriLDAP server URI""
config.ldap.bindDnLDAP bind distinguished name""
config.ldap.bindPasswordLDAP bind password""
config.ldap.userSearchBaseDnLDAP user search base""
config.ldap.tlsCacertFileLDAP TLS CA certificate file""
config.ldap.startTlsEnable LDAP StartTLSfalse
config.ldap.existingSecretExisting secret for LDAP credentials""
config.ldap.bindPasswordKeyKey in existing secret for LDAP passwordldap-bind-password

Remote User Authentication

NameDescriptionValue
config.remoteUserAuthEnable REMOTE-USER header authenticationfalse

Email Configuration

NameDescriptionValue
config.email.hostSMTP server hostname""
config.email.portSMTP server port25
config.email.userSMTP authentication username""
config.email.passwordSMTP authentication password""
config.email.useTlsEnable TLS for emailfalse
config.email.useSslEnable SSL for emailfalse
config.email.defaultFromDefault from email addresswebmaster@localhost
config.email.accountEmailSubjectPrefixEmail subject prefix[Tandoor Recipes]
config.email.existingSecretExisting secret for email credentials""
config.email.passwordKeyKey in existing secret for email passwordemail-password

S3/Object Storage Configuration

NameDescriptionValue
config.s3.enabledEnable S3 storage for media filesfalse
config.s3.accessKeyS3 access key""
config.s3.secretAccessKeyS3 secret access key""
config.s3.bucketNameS3 bucket name""
config.s3.regionNameS3 region name""
config.s3.endpointUrlCustom S3 endpoint URL (for MinIO)""
config.s3.customDomainCDN/proxy domain for S3""
config.s3.querystringAuthUse signed URLs for S3 objectstrue
config.s3.querystringExpireSigned URL expiration (seconds)3600
config.s3.existingSecretExisting secret for S3 credentials""

AI Features

NameDescriptionValue
config.ai.enabledEnable AI featuresfalse
config.ai.creditsMonthlyMonthly AI credits per space100
config.ai.rateLimitAI API rate limit60/hour

External Services

NameDescriptionValue
config.fdcApiKeyFood Data Central API keyDEMO_KEY
config.disableExternalConnectorsDisable all external connectorsfalse
config.externalConnectorsQueueSizeExternal connectors queue size100

Rate Limiting

NameDescriptionValue
config.ratelimitUrlImportRequestsRate limit for URL imports""
config.drfThrottleRecipeUrlImportDRF throttle for recipe URL import60/hour

Space Defaults

NameDescriptionValue
config.spaceDefaultMaxRecipesMax recipes per space (0=unlimited)0
config.spaceDefaultMaxUsersMax users per space (0=unlimited)0
config.spaceDefaultMaxFilesMax file storage in MB (0=unlimited)0
config.spaceDefaultAllowSharingAllow public recipe sharingtrue

User Preference Defaults

NameDescriptionValue
config.fractionPrefDefaultDefault fraction displayfalse
config.commentPrefDefaultEnable comments by defaulttrue
config.stickyNavPrefDefaultSticky navbar by defaulttrue
config.maxOwnedSpacesPrefDefaultMax spaces per user100

Cosmetic Configuration

NameDescriptionValue
config.unauthenticatedThemeFromSpaceSpace ID for unauthenticated theme0
config.forceThemeFromSpaceSpace ID to enforce theme globally0

Performance Configuration

NameDescriptionValue
config.shoppingMinAutosyncIntervalMin auto-sync interval (minutes)5
config.exportFileCacheDurationExport cache duration (seconds)600

Legal URLs

NameDescriptionValue
config.termsUrlTerms of service URL""
config.privacyUrlPrivacy policy URL""
config.imprintUrlLegal imprint URL""

hCaptcha Configuration

NameDescriptionValue
config.hcaptcha.siteKeyhCaptcha site key""
config.hcaptcha.secrethCaptcha secret key""
config.hcaptcha.existingSecretExisting secret for hCaptcha""

Debugging

NameDescriptionValue
config.debugEnable Django debug modefalse
config.debugToolbarEnable Django Debug Toolbarfalse
config.sqlDebugEnable SQL debug outputfalse
config.logLevelApplication log levelWARNING
config.gunicornLogLevelGunicorn log levelinfo

Service Parameters

NameDescriptionValue
service.typeKubernetes Service typeClusterIP
service.portService HTTP port8080

Ingress Parameters

NameDescriptionValue
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotationsSee values.yaml
ingress.hostsIngress hosts configurationSee values.yaml
ingress.tlsIngress TLS configurationSee values.yaml

Persistence Parameters

NameDescriptionValue
persistence.staticfiles.enabledEnable static files persistencetrue
persistence.staticfiles.existingClaimUse existing PVC for static files""
persistence.staticfiles.storageClassStorage class for static files""
persistence.staticfiles.accessModeAccess mode for static files PVCReadWriteOnce
persistence.staticfiles.sizeSize of static files PVC1Gi
persistence.mediafiles.enabledEnable media files persistencetrue
persistence.mediafiles.existingClaimUse existing PVC for media files""
persistence.mediafiles.storageClassStorage class for media files""
persistence.mediafiles.accessModeAccess mode for media files PVCReadWriteOnce
persistence.mediafiles.sizeSize of media files PVC5Gi

Pod Security Context

NameDescriptionValue
podSecurityContext.runAsNonRootRun as non-root usertrue
podSecurityContext.runAsUserUser ID to run as1000
podSecurityContext.fsGroupGroup ID for filesystem1000

Container Security Context

NameDescriptionValue
containerSecurityContext.allowPrivilegeEscalationAllow privilege escalationfalse
containerSecurityContext.readOnlyRootFilesystemRead-only root

Deploy tandoor with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tandoor 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 charttandoor is pinned at v0.0.1 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