dwpk
by DevOps IA
A Helm chart to deploy dwpk, a development workspace platform for Kubernetes
About this chart
dwpk
Development Workspace Platform for Kubernetes: a Go operator, an SSH gateway, and a marketplace web UI, deployed together by this chart.
What this chart installs
- manager - the CRD controller (
UserSpace,Workspace,WorkspaceImage), leader-elected for HA, plus the validating/defaulting/conversion webhooks and cert-manager-issued webhook certificate. - gateway - the SSH endpoint users connect to (
ssh <workspace>@<host>), proxying into the right Workspace pod. - ui - the marketplace web UI: OAuth2/local login, image catalog, workspace CRUD, embedded terminal, admin screens.
Any of the three can be disabled independently (manager is always installed; set gateway.enabled=false or ui.enabled=false to skip the other two).
Quick start
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.16.2/cert-manager.yaml
kubectl wait --for=condition=Available -n cert-manager deployment --all --timeout=120s
helm upgrade --install dwpk oci://ghcr.io/devops-ia/dwpk/charts/dwpk \
--namespace dwpk-system --create-namespace \
--set ui.image.repository=<registry>/dwpk-ui \
--set gateway.image.repository=<registry>/dwpk-gateway
See docs/INSTALLATION.md in the project repository for the full walkthrough: OAuth2 provider setup, ingress/Gateway API exposure, admin bootstrap, and verification steps.
Naming the release
The chart takes its name from the release, so dwpk is a default rather than a
requirement:
helm upgrade --install platform helm-dwpk/ -n platform-system --create-namespace
Every Kubernetes object the chart creates is then prefixed platform-. Two
installs can share a cluster, provided each gets its own namespace.
Two things do not follow the release name, by design:
- The CRDs and their API group (
dwpk.devops-ia.io). They are cluster-wide and shared: a second release manages the same kinds. Install them once, withcrd.enabled=falseon any release that should not own them. - Per-user namespaces, which are
dwpk-<user>unless aUserSpacenames its ownspec.namespace.
nameOverride and fullnameOverride work as they do in any chart if you want
the object names to differ from the release name.
Examples
examples/ holds working values files and custom resources:
examples/helm-values/- values for common setups, one file per scenario.examples/crs/-WorkspaceImage,UserSpaceandProjectobjects to apply once the chart is installed.
Exposing the UI
Two independent options, see ui.ingress.* and ui.gateway.* below:
- Classic
networking.k8s.io/v1Ingress(ui.ingress.enabled=true). - Kubernetes Gateway API
Gateway/HTTPRoute(ui.gateway.enabled=true), for clusters standardizing on Gateway API instead of Ingress. Setui.gateway.create=falseandui.gateway.parentRefsto attach to aGatewaymanaged outside this chart.
Local authentication (demo mode)
ui.localAuth.enabled=true turns on username/password login stored as Kubernetes Secrets, alongside any configured OAuth2 providers - useful for demos or environments without an identity provider. See docs/API.md for the local-user management endpoints.
Admin bootstrap
On first install, a Helm pre-install/pre-upgrade hook Job mints an initial admin API token (adminBootstrap.*), readable once from the dwpk-admin-bootstrap Secret in the release namespace, alongside the generated admin password. See docs/ADMINISTRATION.md.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| adminBootstrap | object | {"email":"[email protected]","enabled":true,"password":{"existingSecret":"","existingSecretKey":"password","value":""},"resources":{},"serviceAccount":{"annotations":{}},"userSpaceName":"admin","username":"admin"} | Local admin API token bootstrap (ยง7.7). A Helm pre-install/pre-upgrade hook Job issues a one-time admin token if none exists yet, so the platform is usable before any OAuth2 provider is configured. Requires rbac.helpers.enabled=true and rbac.namespaced=false. |
| adminBootstrap.email | string | "[email protected]" | Owner identity for the admin. Must be unique across UserSpaces: login resolves an identity to exactly one UserSpace by this value. |
| adminBootstrap.enabled | bool | true | Set to false to skip local admin token bootstrap entirely |
| adminBootstrap.password | object | {"existingSecret":"","existingSecretKey":"password","value":""} | Admin password. Leave both keys empty to have one generated on first install and written once to the dwpk-admin-bootstrap Secret. |
| adminBootstrap.password.existingSecret | string | "" | Name of an existing Secret holding the password |
| adminBootstrap.password.existingSecretKey | string | "password" | Key within existingSecret |
| adminBootstrap.password.value | string | "" | Literal password. Prefer existingSecret; a literal here lands in the Helm release stored in the cluster. |
| adminBootstrap.resources | object | {} | Resources for the bootstrap Job's pod |
| adminBootstrap.serviceAccount.annotations | object | {} | Extra annotations for the admin bootstrap ServiceAccount |
| adminBootstrap.userSpaceName | string | "admin" | Name of the UserSpace created for the admin. Its namespace is dwpk-, and it is provisioned with quota.workspaces=0 so no pod can ever run as the identity that holds cluster-wide admin. |
| adminBootstrap.username | string | "admin" | Username for the bootstrapped admin login |
| certManager | object | {"enabled":true} | Cert-manager integration for TLS certificates. Required for webhook certificates and metrics endpoint certificates. |
| crd | object | {"enabled":true,"keep":true} | Custom Resource Definitions |
| fullnameOverride | string | "" | String to fully override chart.fullname template |
| gateway | object | {"affinity":{},"annotations":{},"command":[],"dnsConfig":{},"dnsPolicy":"","enabled":true,"env":{},"envFromConfigMap":{},"envFromFiles":[],"envFromSecrets":{},"extraArgs":[],"hostKey":{"existingSecret":"","path":"/var/run/dwpk-gateway/hostkey/hostkey.pem","secretKey":"hostkey.pem"},"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/devops-ia/dwpk-gateway"},"imagePullSecrets":[],"initContainers":[],"labels":{},"lifecycle":{},"listenAddress":":2222","livenessProbe":{"enabled":true,"failureThreshold":3,"initialDelaySeconds":15,"periodSeconds":20,"successThreshold":1,"timeoutSeconds":1},"livenessProbeCustom":{},"nodeSelector":{},"pod":{"annotations":{},"labels":{}},"podDisruptionBudget":{"enabled":false,"minAvailable":1},"podSecurityContext":{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}},"priorityClassName":"","readinessProbe":{"enabled":true,"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"readinessProbeCustom":{},"replicas":2,"resources":{"limits":{"cpu":"500m","memory":"256Mi"},"requests":{"cpu":"10m","memory":"64Mi"}},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true},"service":{"annotations":{},"labels":{},"port":22,"type":"LoadBalancer"},"serviceAccount":{"create":true,"name":""},"startupProbe":{"enabled":false,"failureThreshold":30,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1},"startupProbeCustom":{},"strategy":{},"terminationGracePeriodSeconds":10,"tolerations":[],"topologySpreadConstraints":[]} | Configure the SSH gateway deployment |
| gateway.affinity | object | {} | Gateway pod's affinity |
| gateway.annotations | object | {} | Custom Deployment annotations |
| gateway.command | list | [] | Override the container command. Empty keeps the image's own entrypoint, which is what you want unless you are debugging. |
| gateway.dnsConfig | object | {} | Pod DNS configuration |
| gateway.dnsPolicy | string | "" | Pod DNS policy. Empty leaves the cluster default. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/ |
| gateway.enabled | bool | true | Set to false to skip gateway installation |
| gateway.env | object | {} | Extra environment variables, as a plain map. Names are upper-cased. A name also present in envFromSecrets or envFromConfigMap is ignored here: those take precedence. |
| gateway.envFromConfigMap | object | {} | Environment variables read from existing ConfigMaps Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ |
| gateway.envFromFiles | list | [] | Load every key of a ConfigMap or Secret as environment variables Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/#configure-all-key-value-pairs-in-a-configmap-as-container-environment-variables |
| gateway.envFromSecrets | object | {} | Environment variables read from existing Secrets Ref: https://kubernetes.io/docs/concepts/configuration/secret/ |
| gateway.hostKey | object | {"existingSecret":"","path":"/var/run/dwpk-gateway/hostkey/hostkey.pem","secretKey":"hostkey.pem"} | SSH host key configuration. Every replica and every restart mounts the same key from a Secret - VS Code Remote-SSH and other clients that pin a host key refuse to connect the moment two connections to the same address see two different ones. |
| gateway.hostKey.existingSecret | string | "" | Existing Secret containing the private key file. Leave empty and the chart generates one itself on first install (kept across upgrades, so it is not regenerated and re-trusted every release). |
| gateway.hostKey.secretKey | string | "hostkey.pem" | Secret key containing the PEM-encoded private key |
| gateway.image.pullPolicy | string | "IfNotPresent" | Image tag (defaults to Chart.appVersion if not set) tag: "" |
| gateway.image.repository | string | "ghcr.io/devops-ia/dwpk-gateway" | Image repository |
| gateway.imagePullSecrets | list | [] | Image pull secrets, merged with global.imagePullSecrets Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
| gateway.initContainers | list | [] | Additional init containers Ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ |
| gateway.labels | object | {} | Custom Deployment labels |
| gateway.lifecycle | object | {} | Container lifecycle hooks Ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/ |
| gateway.livenessProbe | object | {"enabled":true,"failureThreshold":3,"initialDelaySeconds":15,"periodSeconds":20,"successThreshold":1,"timeoutSeconds":1} | Liveness probe timings. Opens a TCP connection to the SSH port. The check itself is fixed, because which endpoint reports health is a property of the binary rather than a deployment choice. Replace the whole probe with livenessProbeCustom. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
| gateway.livenessProbeCustom | object | {} | Replace the liveness probe entirely. When set it wins over livenessProbe. |
| gateway.nodeSelector | object | {} | Gateway pod's node selector |
| gateway.pod | object | {"annotations":{},"labels":{}} | Custom Pod labels and annotations |
| gateway.podDisruptionBudget | object | {"enabled":false,"minAvailable":1} | Disruption budget. The gateway carries live SSH sessions, so keeping a replica through a drain is the difference between a reconnect and a dropped shell. Ref: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/ |
| gateway.podSecurityContext | object | {"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}} | Pod-level security settings |
| gateway.priorityClassName | string | "" | Priority class name Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ |
| gateway.readinessProbe | object | {"enabled":true,"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1} | Readiness probe timings. Opens a TCP connection to the SSH port. |
| gateway.readinessProbeCustom | object | {} | Replace the readiness probe entirely |
| gateway.resources | object | {"limits":{"cpu":"500m","memory":"256Mi"},"requests":{"cpu":"10m","memory":"64Mi"}} | Resource limits and requests |
| gateway.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true} | Container-level security settings |
| gateway.service | object | {"annotations":{},"labels":{},"port":22,"type":"LoadBalancer"} | Gateway Service configuration |
| gateway.service.annotations | object | {} | Service annotations, for example to request an internal load balancer |
| gateway.service.labels | object | {} | Custom Service labels |
| gateway.serviceAccount | object | {"create":true,"name":""} | ServiceAccount configuration |
| gateway.serviceAccount.create | bool | true | Set to false to reuse an existing ServiceAccount |
| gateway.serviceAccount.name | string | "" | Existing ServiceAccount name (used when create=false) |
| gateway.startupProbe | object | {"enabled":false,"failureThreshold":30,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1} | Startup probe timings. Off by default: the gateway binds its listener immediately. |
| gateway.startupProbeCustom | object | {} | Replace the startup probe entirely |
| gateway.strategy | object | {} | Deployment strategy Ref: https://kuberne |
Deploy dwpk with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dwpk 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 chartdwpk is pinned at v1.0.2 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