code-server
A Helm chart to deploy VisualStudio Code server on Kubernetes and OpenShift
About this chart
code-server
⚠️ DEPRECATED: we now use the JupyterLab chart to deploy a JupyterLab + VSCode workspace Use the webapp chart if you want to deploy a code-server image
A Helm chart to deploy VisualStudio Code server on Kubernetes and OpenShift
Installing the Chart
To install the DSRI Helm Charts, if not already done:
helm repo add dsri https://maastrichtu-ids.github.io/dsri-helm-charts/
helm repo update
Deploying the Chart
To deploy the chart with the release name code-server:
helm install code-server dsri/code-server \
--set serviceAccount.name=anyuid \
--set openshiftRoute.enabled=true \
--set password=changeme
The command deploys code-server on the OpenShift or Kubernetes cluster in the default configuration.
Uninstalling the Chart
To uninstall/delete the code-server deployment:
helm delete code-server
The command removes all the Kubernetes components associated with the chart and deletes the release.
Configuration
The following table lists the configurable parameters of the code-server chart and their default values. They can be defined in the values.yaml file, or using the flag --set.
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| extraEnvs | list | [] | |
| gitUrl | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/maastrichtu-ids/code-server" | |
| image.tag | string | "latest" | |
| imagePullSecrets | list | [] | drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1000 |
| ingress.annotations | object | {} | |
| ingress.enabled | bool | false | |
| ingress.openshiftHost.clusterUrl | string | "apps.dsri2.unimaas.nl" | |
| ingress.openshiftHost.project | string | "workspace-vemonet" | |
| ingress.tls | list | [] | - host: "code-server-workspace-vemonet.apps.dsri2.unimaas.nl" paths: ["/"] |
| nodeSelector | object | {} | |
| openshiftRoute.enabled | bool | true | |
| openshiftRoute.host | string | "" | |
| openshiftRoute.path | string | "" | |
| openshiftRoute.tls.enabled | bool | true | |
| openshiftRoute.tls.insecureEdgeTerminationPolicy | string | "Redirect" | |
| openshiftRoute.tls.termination | string | "edge" | |
| openshiftRoute.wildcardPolicy | string | "None" | |
| password | string | "" | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.port | int | 8080 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | false | |
| serviceAccount.name | string | "anyuid" | |
| storage.enabled | bool | true | |
| storage.mountPath | string | "/home/coder/project" | |
| storage.size | string | "5Gi" | |
| tolerations | list | [] |
Deploy code-server with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has code-server 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 chartcode-server is pinned at v0.1.31 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