dwpk

by DevOps IA

Helm chartv1.0.2App 1.0.4Verified publisher

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, with crd.enabled=false on any release that should not own them.
  • Per-user namespaces, which are dwpk-<user> unless a UserSpace names its own spec.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, UserSpace and Project objects to apply once the chart is installed.

Exposing the UI

Two independent options, see ui.ingress.* and ui.gateway.* below:

  • Classic networking.k8s.io/v1 Ingress (ui.ingress.enabled=true).
  • Kubernetes Gateway API Gateway/HTTPRoute (ui.gateway.enabled=true), for clusters standardizing on Gateway API instead of Ingress. Set ui.gateway.create=false and ui.gateway.parentRefs to attach to a Gateway managed 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

KeyTypeDefaultDescription
adminBootstrapobject{"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.emailstring"[email protected]"Owner identity for the admin. Must be unique across UserSpaces: login resolves an identity to exactly one UserSpace by this value.
adminBootstrap.enabledbooltrueSet to false to skip local admin token bootstrap entirely
adminBootstrap.passwordobject{"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.existingSecretstring""Name of an existing Secret holding the password
adminBootstrap.password.existingSecretKeystring"password"Key within existingSecret
adminBootstrap.password.valuestring""Literal password. Prefer existingSecret; a literal here lands in the Helm release stored in the cluster.
adminBootstrap.resourcesobject{}Resources for the bootstrap Job's pod
adminBootstrap.serviceAccount.annotationsobject{}Extra annotations for the admin bootstrap ServiceAccount
adminBootstrap.userSpaceNamestring"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.usernamestring"admin"Username for the bootstrapped admin login
certManagerobject{"enabled":true}Cert-manager integration for TLS certificates. Required for webhook certificates and metrics endpoint certificates.
crdobject{"enabled":true,"keep":true}Custom Resource Definitions
fullnameOverridestring""String to fully override chart.fullname template
gatewayobject{"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.affinityobject{}Gateway pod's affinity
gateway.annotationsobject{}Custom Deployment annotations
gateway.commandlist[]Override the container command. Empty keeps the image's own entrypoint, which is what you want unless you are debugging.
gateway.dnsConfigobject{}Pod DNS configuration
gateway.dnsPolicystring""Pod DNS policy. Empty leaves the cluster default. Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
gateway.enabledbooltrueSet to false to skip gateway installation
gateway.envobject{}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.envFromConfigMapobject{}Environment variables read from existing ConfigMaps Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/
gateway.envFromFileslist[]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.envFromSecretsobject{}Environment variables read from existing Secrets Ref: https://kubernetes.io/docs/concepts/configuration/secret/
gateway.hostKeyobject{"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.existingSecretstring""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.secretKeystring"hostkey.pem"Secret key containing the PEM-encoded private key
gateway.image.pullPolicystring"IfNotPresent"Image tag (defaults to Chart.appVersion if not set) tag: ""
gateway.image.repositorystring"ghcr.io/devops-ia/dwpk-gateway"Image repository
gateway.imagePullSecretslist[]Image pull secrets, merged with global.imagePullSecrets Ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
gateway.initContainerslist[]Additional init containers Ref: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
gateway.labelsobject{}Custom Deployment labels
gateway.lifecycleobject{}Container lifecycle hooks Ref: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/
gateway.livenessProbeobject{"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.livenessProbeCustomobject{}Replace the liveness probe entirely. When set it wins over livenessProbe.
gateway.nodeSelectorobject{}Gateway pod's node selector
gateway.podobject{"annotations":{},"labels":{}}Custom Pod labels and annotations
gateway.podDisruptionBudgetobject{"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.podSecurityContextobject{"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}Pod-level security settings
gateway.priorityClassNamestring""Priority class name Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
gateway.readinessProbeobject{"enabled":true,"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":1}Readiness probe timings. Opens a TCP connection to the SSH port.
gateway.readinessProbeCustomobject{}Replace the readiness probe entirely
gateway.resourcesobject{"limits":{"cpu":"500m","memory":"256Mi"},"requests":{"cpu":"10m","memory":"64Mi"}}Resource limits and requests
gateway.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container-level security settings
gateway.serviceobject{"annotations":{},"labels":{},"port":22,"type":"LoadBalancer"}Gateway Service configuration
gateway.service.annotationsobject{}Service annotations, for example to request an internal load balancer
gateway.service.labelsobject{}Custom Service labels
gateway.serviceAccountobject{"create":true,"name":""}ServiceAccount configuration
gateway.serviceAccount.createbooltrueSet to false to reuse an existing ServiceAccount
gateway.serviceAccount.namestring""Existing ServiceAccount name (used when create=false)
gateway.startupProbeobject{"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.startupProbeCustomobject{}Replace the startup probe entirely
gateway.strategyobject{}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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdwpk is pinned at v1.0.2 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