worklog

by janip81

Helm chartv0.1.3App 0.1.0Verified publisher

Worklog salary tracker — Go API + React frontend

About this chart

worklog

Worklog salary tracker — Go API + React frontend

Maintainers

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

Overview

Helm chart for the Worklog salary tracker — Go API + React frontend.

Adding this helm repository

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

TL;DR

helm repo add janip81 https://janip81.github.io/helm-charts/
helm install worklog janip81/worklog -f your-values.yaml

Prerequisites

  • Kubernetes with Gateway API (Cilium)
  • CNPG Database CRD applied to create the worklog db on pg-main
  • A Secret named worklog-api-secret with keys: DATABASE_URL, KEYCLOAK_URL, KEYCLOAK_REALM, FRONTEND_ORIGIN

Values

KeyTypeDefaultDescription
api.image.pullPolicystring"IfNotPresent"Image pull policy
api.image.repostring"ghcr.io/janip81/worklog-api"API container image repository
api.image.tagstring"latest"API image tag
api.replicasint1Number of pods (0 pauses the component; the database is unaffected)
api.resources.limits.cpustring"200m"CPU limit for the API container
api.resources.limits.memorystring"128Mi"Memory limit for the API container
api.resources.requests.cpustring"50m"CPU request for the API container
api.resources.requests.memorystring"64Mi"Memory request for the API container
api.secretNamestring"worklog-api-secret"Name of the Secret containing DATABASE_URL, KEYCLOAK_URL, KEYCLOAK_REALM
api.service.portint8081Service port for the API
frontend.image.pullPolicystring"IfNotPresent"Image pull policy
frontend.image.repostring"ghcr.io/janip81/worklog-frontend"Frontend container image repository
frontend.image.tagstring"latest"Frontend image tag
frontend.replicasint1Number of pods (0 pauses the component; the database is unaffected)
frontend.resources.limits.cpustring"100m"CPU limit for the frontend container
frontend.resources.limits.memorystring"64Mi"Memory limit for the frontend container
frontend.resources.requests.cpustring"20m"CPU request for the frontend container
frontend.resources.requests.memorystring"32Mi"Memory request for the frontend container
frontend.service.portint80Service port for the frontend
gatewayobject{"apiHostname":"worklog-api.prod.threshold.se","frontendHostname":"worklog.prod.threshold.se","name":"internal-shared","namespace":"kube-system"}Gateway API HTTPRoute settings (Cilium / internal-shared gateway)
gateway.apiHostnamestring"worklog-api.prod.threshold.se"Hostname for the Go API
gateway.frontendHostnamestring"worklog.prod.threshold.se"Hostname for the React frontend
gateway.namestring"internal-shared"Gateway name
gateway.namespacestring"kube-system"Gateway namespace
imagePullSecretstring""Image pull secret name for GHCR (kubernetes.io/dockerconfigjson)
podSecurityContextobject{"seccompProfile":{"type":"RuntimeDefault"}}Pod security context. RuntimeDefault seccomp blocks syscalls no normal app needs. Add runAsNonRoot: true (and runAsUser) here if the image runs as a non-root user.
securityContextobject{"allowPrivilegeEscalation":false}Container security context, applied to every container (incl. init and migrate containers).

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy worklog with OpenTenant

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