norish

by rtomik

Helm chartv0.0.6App v0.20.0-betaVerified publisher

Norish helm chart for Kubernetes - A recipe management and meal planning application

About this chart

Norish Helm Chart

A Helm chart for deploying Norish, a recipe management and meal planning application, on Kubernetes.

Introduction

This chart deploys Norish on a Kubernetes cluster. Norish requires an external PostgreSQL database, a Redis server, and includes a Chrome headless sidecar for recipe parsing. It supports multiple authentication methods including password auth, OIDC, GitHub OAuth, and Google OAuth.

Source code: https://github.com/rtomik/helm-charts/tree/main/charts/norish

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • PostgreSQL database (required)
  • Redis server (required)
  • PV provisioner support (if persistence is enabled)

Installing the Chart

helm repo add rtomik https://rtomik.github.io/helm-charts
helm install norish rtomik/norish

Uninstalling the Chart

helm uninstall norish

Configuration Examples

Minimal Installation (Password Authentication)

database:
  host: "postgresql.default.svc.cluster.local"
  port: 5432
  name: norish
  username: norish
  password: "secure-password"

redis:
  host: "redis.default.svc.cluster.local"
  port: 6379
  database: 0

config:
  authUrl: "https://norish.example.com"
  masterKey:
    value: "<your-32-byte-base64-key>"  # Generate: openssl rand -base64 32

ingress:
  enabled: true
  hosts:
    - host: norish.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - norish.example.com

Production with Existing Secrets

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

redis:
  existingSecret: "norish-redis-secret"
  urlKey: "redis-url"

config:
  authUrl: "https://norish.example.com"
  masterKey:
    existingSecret: "norish-master-key"
    secretKey: "master-key"

Create the required secrets:

kubectl create secret generic norish-db-secret \
  --from-literal=username="norish" \
  --from-literal=password="secure-db-password"

kubectl create secret generic norish-redis-secret \
  --from-literal=redis-url="redis://username:[email protected]:6379/0"

kubectl create secret generic norish-master-key \
  --from-literal=master-key="$(openssl rand -base64 32)"

OIDC Authentication

config:
  auth:
    oidc:
      enabled: true
      name: "Authentik"
      issuer: "https://auth.example.com/application/o/norish/"
      clientId: "<your-client-id>"
      clientSecret: "<your-client-secret>"
  # Optional: allow password auth alongside OIDC
  passwordAuthEnabled: "true"

Set the redirect URI in your provider to: https://norish.example.com/api/auth/oauth2/callback/oidc

Optionally map OIDC group claims to the admin role and to households:

config:
  auth:
    oidc:
      enabled: true
      claimMapping:
        enabled: true
        scopes: "groups"
        groupsClaim: "groups"
        adminGroup: "norish_admin"
        householdGroupPrefix: "norish_household_"

GitHub OAuth

  1. Create a GitHub OAuth App at https://github.com/settings/developers
  2. Set Authorization callback URL to: https://norish.example.com/api/auth/callback/github
config:
  auth:
    github:
      enabled: true
      clientId: "<your-github-client-id>"
      clientSecret: "<your-github-client-secret>"

Google OAuth

  1. Create OAuth credentials at https://console.cloud.google.com/apis/credentials
  2. Set Authorized redirect URI to: https://norish.example.com/api/auth/callback/google
config:
  auth:
    google:
      enabled: true
      clientId: "<your-google-client-id>"
      clientSecret: "<your-google-client-secret>"

Using Existing PVC

persistence:
  enabled: true
  existingClaim: "my-existing-pvc"

Adopting an Existing (non-Helm) Norish Install

Resource names are derived from the chart name, not the release name, so this chart always creates norish-secret and norish-uploads. If you already run Norish from hand-written manifests using those same names, point the chart at the existing objects instead of letting it template new ones:

config:
  masterKey:
    existingSecret: "norish-secret"   # reuse the existing key
    secretKey: "master-key"
persistence:
  existingClaim: "norish-uploads"
redis:
  existingSecret: "norish-secret"
  urlKey: "redis-url"

⚠️ Never let a new MASTER_KEY be generated for an existing database. The key derives the encryption keys, so replacing it makes every previously encrypted value unreadable. Helm refuses to adopt resources it does not own, but a GitOps tool configured to replace or prune resources will not stop you — set existingSecret before the first sync.

Parameters

Global Parameters

NameDescriptionDefault
nameOverrideOverride the release name""
fullnameOverrideFully override the release name""

Image Parameters

NameDescriptionDefault
image.repositoryNorish image repositorynorishapp/norish
image.tagImage tagv0.20.0-beta
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsImage pull secrets[]

Deployment Parameters

NameDescriptionDefault
replicaCountNumber of replicas1
revisionHistoryLimitRevisions to retain3
podSecurityContext.runAsNonRootRun as non-roottrue
podSecurityContext.runAsUserUser ID1000
podSecurityContext.fsGroupFilesystem group ID1000
nodeSelectorNode selector{}
tolerationsTolerations[]
affinityAffinity rules{}
podAnnotationsPod annotations{}

Service Parameters

NameDescriptionDefault
service.typeService typeClusterIP
service.portService port3000
service.annotationsService annotations{}

Ingress Parameters

NameDescriptionDefault
ingress.enabledEnable ingressfalse
ingress.classNameIngress class name""
ingress.annotationsIngress annotationsSee values.yaml
ingress.hostsIngress hostsSee values.yaml
ingress.tlsTLS configurationSee values.yaml

Persistence Parameters

NameDescriptionDefault
persistence.enabledEnable persistencetrue
persistence.existingClaimUse an existing PVC""
persistence.storageClassStorage class""
persistence.accessModeAccess modeReadWriteOnce
persistence.sizePVC size5Gi
persistence.annotationsPVC annotations{}

Database Configuration (Required)

NameDescriptionDefault
database.hostPostgreSQL host""
database.portPostgreSQL port5432
database.nameDatabase namenorish
database.usernameUsernamepostgres
database.passwordPassword""
database.existingSecretExisting secret name""
database.usernameKeyKey for username in secretusername
database.passwordKeyKey for password in secretpassword
database.databaseKeyKey for database name in secretdatabase
database.hostKeyKey for host in secret""

Redis Configuration (Required)

NameDescriptionDefault
redis.hostRedis host""
redis.portRedis port6379
redis.databaseRedis database number0
redis.usernameRedis username (6.0+)""
redis.passwordRedis password""
redis.existingSecretExisting secret name""
redis.urlKeyKey for full Redis URL in secretredis-url
redis.passwordKeyKey for password in secretpassword

Application Configuration

NameDescriptionDefault
config.authUrlApplication URL (must match ingress)http://norish.domain.com
config.logLevelLog level (trace, debug, info, warn, error, fatal)""
config.trustedOriginsAdditional trusted origins (comma-separated)""
config.passwordAuthEnabledEnable/disable password auth""
config.enableRegistrationAllow self-registration of new users""
config.uploadsDirUploads directory / volume mount path (UPLOADS_DIR)/app/uploads
config.parserApiTimeoutMsRecipe parser API timeout in ms""
config.defaultLocaleInstance default locale""
config.enabledLocalesComma-separated list of enabled locales (empty = all)""
config.extraEnvExtra environment variables[]

Master Key Configuration (Required)

NameDescriptionDefault
config.masterKey.value32-byte base64 encryption key""
config.masterKey.existingSecretExisting secret name""
config.masterKey.secretKeyKey in secretmaster-key

Generate with: openssl rand -base64 32

OIDC Authentication

NameDescriptionDefault
config.auth.oidc.enabledEnable OIDCfalse
config.auth.oidc.nameProvider display nameMyAuth
config.auth.oidc.issuerOIDC issuer URL""
config.auth.oidc.clientIdClient ID""
config.auth.oidc.clientSecretClient secret""
config.auth.oidc.wellKnownWell-known URL (optional)""
config.auth.oidc.existingSecretExisting secret name""
config.auth.oidc.clientIdKeyKey for client ID in secretoidc-client-id
config.auth.oidc.clientSecretKeyKey for client secret in secretoidc-client-secret
config.auth.oidc.claimMapping.enabledAssign admin role / households from OIDC claimsfalse
config.auth.oidc.claimMapping.scopesExtra scopes to request (comma-separated)""
config.auth.oidc.claimMapping.groupsClaimClaim containing user groupsgroups
config.auth.oidc.claimMapping.adminGroupGroup granting the server admin rolenorish_admin
config.auth.oidc.claimMapping.householdGroupPrefixPrefix for household groupsnorish_household_

GitHub OAuth

NameDescriptionDefault
config.auth.github.enabledEnable GitHub OAuthfalse
config.auth.github.clientIdClient ID""
config.auth.github.clientSecretClient secret""
config.auth.github.existingSecretExisting secret name""
config.auth.github.clientIdKeyKey for client ID in secretgithub-client-id
config.auth.github.clientSecretKeyKey for client secret in secretgithub-client-secret

Google OAuth

NameDescriptionDefault
config.auth.google.enabledEnable Google OAuthfalse
config.auth.google.clientIdClient ID""
config.auth.google.clientSecretClient secret""
config.auth.google.existingSecretExisting secret name""
config.auth.google.clientIdKeyKey for client ID in secretgoogle-client-id
config.auth.google.clientSecretKeyKey for client secret in secretgoogle-client-secret

Chrome Headless Parameters

NameDescriptionDefault
chrome.enabledEnable Chrome sidecartrue
chrome.image.repositoryChrome image repositoryzenika/alpine-chrome
chrome.image.tagChrome image taglatest
chrome.image.pullPolicyImage pull policyIfNotPresent
chrome.portChrome debugging port9222
chrome.securityContextChrome security context (requires root + SYS_ADMIN)See values.yaml
chrome.resourcesChrome resource limits{}

Resource Parameters

NameDescriptionDefault
resourcesResource limits and requests{}

Health Check Parameters

NameDescriptionDefault
probes.startup.enabledEnable startup probetrue
probes.startup.pathStartup probe path/api/v1/health
probes.startup.initialDelaySecondsStartup initial delay10
probes.startup.periodSecondsStartup period10
probes.startup.failureThresholdStartup failure threshold30
probes.liveness.enabledEnable liveness probetrue
probes.liveness.pathLiveness probe path (see Upgrading for why this is not the health endpoint)/
probes.liveness.initialDelaySecondsLiveness initial delay30
probes.liveness.periodSecondsLiveness period10
probes.readiness.enabledEnable readiness probetrue
probes.readiness.pathReadiness probe path/api/v1/health
probes.readiness.initialDelaySecondsReadiness initial delay5
probes.readiness.periodSecondsReadiness period5

Upgrading

From v0.13.x to v0.14.x

Breaking change: Redis is now required. Configure Redis before upgrading (see Redis Configuration).

From v0.14.x to v0.15.x

No configuration changes required. Redis, PostgreSQL, and Chrome headless are already configured. Back up your database before upgrading as a precaution.

From chart 0.0.5 to chart 0.0.6 (app v0.20.0-beta)

⚠️ Back up your database and your uploads volume before upgrading.

Which app version were you on? Chart 0.0.5 declared appVersion: v0.15.4-beta but shipped image.tag: v0.16.2-beta in values.yaml, and the tag always wins. So unless you pinned image.tag yourself, yo

Deploy norish with OpenTenant

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