recipya

by rtomik

Helm chartv0.0.2App v1.2.2Verified publisher

A Helm chart for Recipya recipe manager application

About this chart

Recipya Helm Chart

A Helm chart for deploying Recipya on Kubernetes.

Introduction

This chart deploys Recipya recipe manager on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure (if persistence is needed)

Installing the Chart

To install the chart with the release name recipya:

helm repo add recipya-chart https://rtomik.github.io/helm-charts
helm install recipya recipya-chart/recipya -n recipya

The command deploys Recipya on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Uninstalling the Chart

To uninstall/delete the recipya deployment:

helm uninstall recipya -n recipya

Important Configuration Notes

Server URL

When deploying with an ingress, it's critical to set config.server.url to match your ingress URL (including https if you're using TLS). This ensures that redirects after login work correctly:

config:
  server:
    url: "https://your-recipya-domain.com"

Ingress Configuration

This chart includes optimized ingress configurations for Traefik, with support for WebSockets and proper security headers. If you're using a different ingress controller, you may need to adjust annotations accordingly.

Parameters

Global parameters

NameDescriptionValue
image.repositoryRecipya image repositoryreaper99/recipya
image.tagRecipya image tagv1.2.2
image.pullPolicyRecipya image pull policyIfNotPresent
replicaCountNumber of Recipya replicas1
revisionHistoryLimitNumber of revisions to keep3

Security parameters

NameDescriptionValue
podSecurityContext.fsGroupGroup ID for the Recipya container1000
containerSecurityContextSecurity context for the container{}

Recipya configuration parameters

NameDescriptionValue
config.server.portServer port8078
config.server.autologinWhether to login automaticallyfalse
config.server.is_demoWhether the app is a demo versionfalse
config.server.is_prodWhether the app is in productionfalse
config.server.no_signupsWhether to disable user account registrationsfalse
config.server.urlBase URL for the applicationhttp://0.0.0.0
config.email.addressThe email address for SendGrid""
config.email.sendgridSendGrid API key""
config.documentIntelligence.endpointAzure Document Intelligence endpoint""
config.documentIntelligence.keyAzure Document Intelligence key""

Service parameters

NameDescriptionValue
service.typeRecipya service typeClusterIP
service.portRecipya service port8078

Ingress parameters

NameDescriptionValue
ingress.enabledEnable ingress controller resourcefalse
ingress.classNameIngressClass that will be used"traefik"
ingress.annotationsAdditional ingress annotationsSee values.yaml
ingress.hosts[0].hostDefault host for the ingress resourcechart-example.local
ingress.tlsTLS configuration[]

Persistence parameters

NameDescriptionValue
persistence.enabledEnable persistence using PVCtrue
persistence.accessModePVC Access ModeReadWriteOnce
persistence.sizePVC Storage Request1Gi
persistence.storageClassStorage class of backing PVC""

Resource parameters

NameDescriptionValue
resources.limits.cpuCPU limit500m
resources.limits.memoryMemory limit512Mi
resources.requests.cpuCPU request100m
resources.requests.memoryMemory request128Mi

Probe parameters

NameDescriptionValue
probes.liveness.enabledEnable liveness probetrue
probes.liveness.pathPath for liveness probe/
probes.readiness.enabledEnable readiness probetrue
probes.readiness.pathPath for readiness probe/

Traefik Ingress Configuration

The chart includes specially configured middlewares for Traefik to ensure proper functioning of Recipya:

ingress:
  enabled: true
  className: "traefik"
  annotations:
    traefik.ingress.kubernetes.io/router.entrypoints: websecure
    traefik.ingress.kubernetes.io/router.middlewares: recipya-recipya-headers@kubernetescrd
    traefik.ingress.kubernetes.io/service.sticky: "true"
    traefik.ingress.kubernetes.io/session-cookie-name: "recipya_session"
  hosts:
    - host: recipya.example.com
      paths:
        - path: /
          pathType: ImplementationSpecific
  tls:
    - hosts:
      - recipya.example.com

This configuration includes:

  1. Custom Content Security Policy allowing essential scripts from unpkg.com
  2. Sticky sessions for maintaining authentication
  3. Proper headers for proxy operation

Content Security Policy Configuration

The chart includes a custom middleware that configures the proper Content Security Policy for Recipya. This is particularly important as the application requires access to external scripts from unpkg.com:

contentSecurityPolicy: >-
  default-src 'self';
  script-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data: https://unpkg.com;
  style-src 'self' 'unsafe-inline';
  img-src 'self' data: blob:;
  font-src 'self' data:;
  connect-src 'self' ws: wss: *;
  worker-src 'self' blob:;
  frame-src 'self';
  media-src 'self' blob:;
  object-src 'none';
  form-action 'self';

Using Existing Secrets

If you want to use existing secrets for sensitive data:

config:
  email:
    existingSecret: "my-email-secret"
    addressKey: "email"
    sendgridKey: "sendgrid"
  documentIntelligence:
    existingSecret: "my-di-secret"
    endpointKey: "di_endpoint"
    keyKey: "di_key"

Configuration

See the Recipya documentation for details on all available configuration options.

Deploy recipya with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has recipya 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 chartrecipya 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