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
| Name | Url | |
|---|---|---|
| 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
DatabaseCRD applied to create theworklogdb onpg-main - A Secret named
worklog-api-secretwith keys:DATABASE_URL,KEYCLOAK_URL,KEYCLOAK_REALM,FRONTEND_ORIGIN
Values
| Key | Type | Default | Description |
|---|---|---|---|
| api.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| api.image.repo | string | "ghcr.io/janip81/worklog-api" | API container image repository |
| api.image.tag | string | "latest" | API image tag |
| api.replicas | int | 1 | Number of pods (0 pauses the component; the database is unaffected) |
| api.resources.limits.cpu | string | "200m" | CPU limit for the API container |
| api.resources.limits.memory | string | "128Mi" | Memory limit for the API container |
| api.resources.requests.cpu | string | "50m" | CPU request for the API container |
| api.resources.requests.memory | string | "64Mi" | Memory request for the API container |
| api.secretName | string | "worklog-api-secret" | Name of the Secret containing DATABASE_URL, KEYCLOAK_URL, KEYCLOAK_REALM |
| api.service.port | int | 8081 | Service port for the API |
| frontend.image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| frontend.image.repo | string | "ghcr.io/janip81/worklog-frontend" | Frontend container image repository |
| frontend.image.tag | string | "latest" | Frontend image tag |
| frontend.replicas | int | 1 | Number of pods (0 pauses the component; the database is unaffected) |
| frontend.resources.limits.cpu | string | "100m" | CPU limit for the frontend container |
| frontend.resources.limits.memory | string | "64Mi" | Memory limit for the frontend container |
| frontend.resources.requests.cpu | string | "20m" | CPU request for the frontend container |
| frontend.resources.requests.memory | string | "32Mi" | Memory request for the frontend container |
| frontend.service.port | int | 80 | Service port for the frontend |
| gateway | object | {"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.apiHostname | string | "worklog-api.prod.threshold.se" | Hostname for the Go API |
| gateway.frontendHostname | string | "worklog.prod.threshold.se" | Hostname for the React frontend |
| gateway.name | string | "internal-shared" | Gateway name |
| gateway.namespace | string | "kube-system" | Gateway namespace |
| imagePullSecret | string | "" | Image pull secret name for GHCR (kubernetes.io/dockerconfigjson) |
| podSecurityContext | object | {"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. |
| securityContext | object | {"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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartworklog is pinned at v0.1.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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