holidayhub

by janip81

Helm chartv0.1.8App 0.1.0Verified publisher

Private vacation and travel management dashboard

About this chart

holidayhub

Private vacation and travel management dashboard

Homepage: https://github.com/janip81/helm-charts/tree/main/charts/holidayhub

Maintainers

NameEmailUrl
janip81[email protected]https://github.com/janip81

Source Code

Overview

Helm chart for deploying HolidayHub — a self-hosted private family travel planning dashboard.

Built with Next.js 14, TypeScript, Material UI, Prisma ORM, and PostgreSQL (via CNPG). Supports multi-user trip sharing with role-based access (OWNER / EDITOR / VIEWER).

Adding this helm repository

helm repo add janip81 https://janip81.github.io/helm-charts/
helm search repo holidayhub

Prerequisites

  • CNPG operator installed in the cluster (for the managed PostgreSQL cluster, if cnpg.enabled: true)
  • A Kubernetes Secret with NEXTAUTH_SECRET key (pre-created or via AVP):
    kubectl -n holidayhub create secret generic holidayhub-secret \
      --from-literal=NEXTAUTH_SECRET='$(openssl rand -base64 32)'
    

TL;DR

helm repo add janip81 https://janip81.github.io/helm-charts/
helm install holidayhub janip81/holidayhub \
  --namespace holidayhub \
  --create-namespace \
  --set gatewayApi.host=holidayhub.example.com \
  --set env.NEXTAUTH_URL=https://holidayhub.example.com \
  --set cnpg.storage.storageClass=your-storage-class

Gateway API (HTTPRoute)

gatewayApi:
  enabled: true
  host: holidayhub.your-domain.com
  parentRefs:
    - name: internal-shared
      namespace: kube-system

Prisma Migrations

Enable the pre-upgrade migration Job to run prisma migrate deploy before each rollout:

migrations:
  enabled: true

The Job uses the same container image as the app, so it picks up the current schema automatically.

Secret Management (ArgoCD Vault Plugin)

Set secret.create: false to let AVP manage the secret:

secret:
  create: false

Then provide a secret via your cluster-config path:

# cluster-config/holidayhub/secret.yaml
apiVersion: v1
kind: Secret
metadata:
  name: holidayhub-secret
  namespace: holidayhub
  annotations:
    avp.kubernetes.io/path: "kubernetes/data/prod-k8s/holidayhub"
type: Opaque
stringData:
  NEXTAUTH_SECRET: <path:kubernetes/data/prod-k8s/holidayhub#nextauth-secret>

CNPG Backup (Barman S3)

cnpg:
  backup:
    enabled: true
    destinationPath: s3://my-bucket/holidayhub
    endpointURL: https://s3.example.com
    s3CredentialsSecret: cnpg-barman-s3-creds
    retentionPolicy: "30d"

The s3CredentialsSecret must contain keys: access-key-id, secret-access-key, region.

Values

KeyTypeDefaultDescription
affinityobject{}
cnpg.backup.destinationPathstring"s3://my-bucket/holidayhub"S3 destination path
cnpg.backup.enabledboolfalseEnable Barman S3 backup
cnpg.backup.endpointURLstring"https://s3.example.com"S3 endpoint URL
cnpg.backup.retentionPolicystring"30d"Backup retention policy
cnpg.backup.s3CredentialsSecretstring"cnpg-barman-s3-creds"Secret with S3 credentials (keys: access-key-id, secret-access-key, region)
cnpg.databasestring"holidayhub"PostgreSQL database name
cnpg.enabledboolfalseEnable a dedicated CloudNativePG cluster for this app. Leave false to use an external/shared database and provide DATABASE_URL via secret.
cnpg.instancesint1Number of CNPG instances
cnpg.ownerstring"holidayhub"PostgreSQL owner role
cnpg.storage.sizestring"5Gi"PVC size
cnpg.storage.storageClassstring""StorageClass (leave empty to use cluster default)
envobject{"NEXTAUTH_URL":"https://holidayhub.threshold.se","NEXT_TELEMETRY_DISABLED":"1","NODE_ENV":"production"}Non-secret environment variables injected via ConfigMap
env.NEXTAUTH_URLstring"https://holidayhub.threshold.se"Public URL of the app — must match the Gateway hostname
gatewayApi.enabledbooltrueEnable Gateway API HTTPRoute
gatewayApi.hoststring"holidayhub.threshold.se"Hostname for the HTTPRoute
gatewayApi.parentRefslist[{"group":"gateway.networking.k8s.io","kind":"Gateway","name":"external-shared","namespace":"kube-system"}]Gateway parentRefs
hpa.enabledboolfalseEnable HorizontalPodAutoscaler
hpa.maxReplicasint3Maximum replicas
hpa.minReplicasint1Minimum replicas
hpa.targetCPUUtilizationPercentageint80CPU utilisation target
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"ghcr.io/janip81/holidayhub"Image repository
image.tagstring"latest"Image tag (pin to a SHA in GitOps)
imagePullSecretslist[]Image pull secrets for private registries (e.g. ghcr.io)
migrationsobject{"enabled":false,"resources":{"limits":{"cpu":"500m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"128Mi"}}}Prisma migrate Job (pre-install/pre-upgrade hook). Runs: prisma migrate deploy
migrations.enabledboolfalseEnable the migration Job
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"Access mode — use ReadWriteOnce for single-replica deployments
persistence.enabledboolfalseEnable a PersistentVolumeClaim for document uploads. Required in production.
persistence.sizestring"5Gi"PVC size
persistence.storageClassstring""StorageClass (leave empty to use cluster default)
podAnnotationsobject{}
podLabelsobject{}
redis.dbint0Redis DB index
redis.enabledboolfalseSet false to use in-memory fallback (single-replica only).
redis.hoststring"redis-replication-master.redis.svc"Redis host (without scheme)
redis.passwordSecretobject{"key":"password","name":""}Existing secret containing the Redis password
redis.passwordSecret.keystring"password"Key inside the secret
redis.passwordSecret.namestring""Secret name
redis.portint6379Redis port
replicaCountint1Number of replicas (keep at 1 — NextAuth.js sessions are node-local by default)
resources.limits.cpustring"500m"CPU limit
resources.limits.memorystring"512Mi"Memory limit
resources.requests.cpustring"100m"CPU request
resources.requests.memorystring"256Mi"Memory request
s3.bucketstring""
s3.endpointstring""Leave endpoint empty to use local disk (persistence.enabled must be true in that case).
s3.regionstring"garage"
secretobject{"create":true}Secret management. Set create: false when the secret is managed externally (e.g. AVP via cluster-config)
secret.createbooltrueCreate the secret from secretEnv values. Set false when AVP manages it.
secretEnvobject{"DATABASE_URL":"postgresql://holidayhub:changeme@localhost:5432/holidayhub","NEXTAUTH_SECRET":"changeme","REDIS_URL":"","SPOTIFY_CLIENT_ID":"","SPOTIFY_CLIENT_SECRET":""}Secret env vars. Used when secret.create: true. Override with AVP refs via cluster-config when secret.create: false.
secretEnv.DATABASE_URLstring"postgresql://holidayhub:changeme@localhost:5432/holidayhub"Full Prisma DATABASE_URL (used when cnpg.enabled: false)
secretEnv.NEXTAUTH_SECRETstring"changeme"NextAuth.js signing/encryption secret. Generate with: openssl rand -base64 32
secretEnv.REDIS_URLstring""In production use redis.enabled: true to build the URL from the cluster Redis password secret.
secretEnv.SPOTIFY_CLIENT_IDstring""Register at https://developer.spotify.com/dashboard
service.portint3000Service port (Next.js listens on 3000)
service.typestring"ClusterIP"Service type
serviceMonitor.bearerTokenSecretobject{"key":"","name":""}Secret containing METRICS_BEARER_TOKEN for Prometheus scraping
serviceMonitor.clusterLabelstring""Value for k8s_cluster relabel (defaults to Release.Namespace if empty)
serviceMonitor.enabledboolfalseEnable Prometheus ServiceMonitor
serviceMonitor.intervalstring"30s"Scrape interval
serviceMonitor.labelsobject{}Additional labels to match your Prometheus operator selector
serviceMonitor.pathstring"/api/metrics"Metrics path
serviceMonitor.scrapeTimeoutstring"10s"Scrape timeout
tolerationslist[]

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy holidayhub with OpenTenant

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