donetick

by rtomik

Helm chartv1.1.0App v0.1.79Verified publisher

Donetick helm chart for Kubernetes

About this chart

Donetick Helm Chart

A Helm chart for deploying Donetick on Kubernetes.

Introduction

This chart deploys Donetick, a task management application, on a Kubernetes cluster using the Helm package manager. Donetick supports SQLite or PostgreSQL databases, real-time updates via WebSockets, OAuth2 authentication, and push notifications via Telegram and Pushover.

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

Prerequisites

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

Installing the Chart

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

Uninstalling the Chart

helm uninstall donetick

Configuration Examples

Minimal Installation (SQLite)

The chart works out of the box with SQLite — no additional configuration required:

helm install donetick rtomik/donetick

PostgreSQL Configuration

config:
  database:
    type: "postgres"
    host: "postgresql.database.svc.cluster.local"
    port: 5432
    name: "donetick"
    secrets:
      existingSecret: "donetick-postgres-secret"
      userKey: "username"
      passwordKey: "password"

  jwt:
    secret: "your-secure-jwt-secret-at-least-32-characters-long"

  server:
    cors_allow_origins:
      - "https://your-domain.com"

  features:
    notifications: true
    realtime: true

ingress:
  enabled: true
  hosts:
    - host: donetick.your-domain.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - donetick.your-domain.com

persistence:
  enabled: true
  size: "5Gi"

Production with Existing Secrets

config:
  database:
    type: "postgres"
    host: "postgresql.database.svc.cluster.local"
    port: 5432
    name: "donetick"
    secrets:
      existingSecret: "donetick-postgres-secret"
      userKey: "username"
      passwordKey: "password"

  jwt:
    existingSecret: "donetick-jwt-secret"
    secretKey: "jwtSecret"
    session_time: "168h"

  oauth2:
    existingSecret: "donetick-oauth-secret"
    clientIdKey: "client-id"
    clientSecretKey: "client-secret"
    auth_url: "https://your-oauth-provider.com/auth"
    token_url: "https://your-oauth-provider.com/token"
    user_info_url: "https://your-oauth-provider.com/userinfo"
    redirect_url: "https://donetick.your-domain.com/auth/callback"

  server:
    cors_allow_origins:
      - "https://donetick.your-domain.com"
    rate_limit: 100
    rate_period: "60s"

  features:
    notifications: true
    realtime: true
    oauth: true

resources:
  limits:
    cpu: 500m
    memory: 512Mi
  requests:
    cpu: 100m
    memory: 128Mi

ingress:
  enabled: true
  hosts:
    - host: donetick.your-domain.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - hosts:
        - donetick.your-domain.com

Create the required secrets:

kubectl create secret generic donetick-postgres-secret \
  --from-literal=username='donetick' \
  --from-literal=password='your-secure-db-password'

kubectl create secret generic donetick-jwt-secret \
  --from-literal=jwtSecret='your-very-secure-jwt-secret-at-least-32-characters-long'

kubectl create secret generic donetick-oauth-secret \
  --from-literal=client-id='your-oauth-client-id' \
  --from-literal=client-secret='your-oauth-client-secret'

Parameters

Global Parameters

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

Image Parameters

NameDescriptionDefault
image.repositoryDonetick image repositorydonetick/donetick
image.tagImage tagv0.1.79
image.pullPolicyImage pull policyIfNotPresent
imagePullSecretsImage pull secrets[]

Deployment Parameters

NameDescriptionDefault
replicaCountNumber of replicas1
revisionHistoryLimitRevisions to retain3
startupArgsOptional startup arguments[]
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 port2021
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 persistencefalse
persistence.storageClassStorage class""
persistence.accessModeAccess modeReadWriteOnce
persistence.sizePVC size1Gi
persistence.annotationsPVC annotations{}

Database Configuration

NameDescriptionDefault
config.database.typeDatabase type (sqlite or postgres)sqlite
config.database.migrationEnable migrationstrue
config.database.migration_skipSkip migrationsfalse
config.database.migration_retryMigration retry count3
config.database.migration_timeoutMigration timeout600s
config.database.hostPostgreSQL host""
config.database.portPostgreSQL port5432
config.database.namePostgreSQL database name""
config.database.secrets.existingSecretExisting secret for credentials""
config.database.secrets.userKeyKey for username in secretusername
config.database.secrets.passwordKeyKey for password in secretpassword

JWT Configuration

NameDescriptionDefault
config.jwt.secretJWT signing secret (min 32 chars)changeme-...
config.jwt.session_timeSession duration168h
config.jwt.max_refreshMax refresh duration168h
config.jwt.existingSecretExisting secret for JWT""
config.jwt.secretKeyKey in secretjwtSecret

Server Configuration

NameDescriptionDefault
config.server.portServer port2021
config.server.read_timeoutRead timeout10s
config.server.write_timeoutWrite timeout10s
config.server.rate_periodRate limiting period60s
config.server.rate_limitRate limit per period300
config.server.serve_frontendServe frontend filestrue
config.server.cors_allow_originsCORS allowed originsSee values.yaml

OAuth2 Configuration

NameDescriptionDefault
config.oauth2.client_idOAuth2 client ID""
config.oauth2.client_secretOAuth2 client secret""
config.oauth2.existingSecretExisting secret for credentials""
config.oauth2.clientIdKeyKey for client ID in secretclient-id
config.oauth2.clientSecretKeyKey for client secret in secretclient-secret
config.oauth2.auth_urlAuthorization URL""
config.oauth2.token_urlToken URL""
config.oauth2.user_info_urlUser info URL""
config.oauth2.redirect_urlRedirect URL""

Real-time Configuration

NameDescriptionDefault
config.realtime.max_connectionsMax WebSocket connections100
config.realtime.ping_intervalPing interval30s
config.realtime.pong_waitPong wait timeout60s
config.realtime.write_waitWrite timeout10s
config.realtime.max_message_sizeMax message size512

Notification Configuration

NameDescriptionDefault
config.telegram.tokenTelegram bot token""
config.pushover.tokenPushover token""

Feature Flags

NameDescriptionDefault
config.features.notificationsEnable notificationstrue
config.features.realtimeEnable real-time featurestrue
config.features.oauthEnable OAuthfalse
config.is_user_creation_disabledDisable user registrationfalse

Resource Parameters

NameDescriptionDefault
resourcesResource limits and requests{}

Health Check Parameters

NameDescriptionDefault
probes.startup.enabledEnable startup probetrue
probes.startup.pathStartup probe path/health
probes.startup.initialDelaySecondsStartup initial delay30
probes.startup.periodSecondsStartup period15
probes.startup.failureThresholdStartup failure threshold80
probes.liveness.enabledEnable liveness probetrue
probes.liveness.pathLiveness probe path/health
probes.liveness.initialDelaySecondsLiveness initial delay30
probes.liveness.periodSecondsLiveness period10
probes.readiness.enabledEnable readiness probetrue
probes.readiness.pathReadiness probe path/health
probes.readiness.initialDelaySecondsReadiness initial delay5
probes.readiness.periodSecondsReadiness period5

Autoscaling Parameters

NameDescriptionDefault
autoscaling.enabledEnable HPAfalse
autoscaling.minReplicasMin replicas1
autoscaling.maxReplicasMax replicas5
autoscaling.targetCPUUtilizationPercentageTarget CPU80
autoscaling.targetMemoryUtilizationPercentageTarget memory80

Troubleshooting

Real-time Configuration Panic

Error: Invalid real-time configuration: maxConnections must be positive, got 0

Ensure config.realtime.max_connections is set to a positive value (default: 100).

Database Connection Issues

  • Verify PostgreSQL is running and accessible
  • Check database credentials in secrets
  • Ensure the database exists
  • Verify network policies allow the connection

JWT Authentication Failures

Ensure config.jwt.secret is at least 32 characters long. For production, use config.jwt.existingSecret.

CORS Issues

Add your domain to config.server.cors_allow_origins:

config:
  server:
    cors_allow_origins:
      - "https://your-domain.com"

Debugging

kubectl logs deployment/donetick -f
kubectl get configmap donetick-configmap -o yaml

Links

Deploy donetick with OpenTenant

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