Helm chartv0.1.31App 1.16.0

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.

KeyTypeDefaultDescription
affinityobject{}
extraEnvslist[]
gitUrlstring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/maastrichtu-ids/code-server"
image.tagstring"latest"
imagePullSecretslist[]drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1000
ingress.annotationsobject{}
ingress.enabledboolfalse
ingress.openshiftHost.clusterUrlstring"apps.dsri2.unimaas.nl"
ingress.openshiftHost.projectstring"workspace-vemonet"
ingress.tlslist[]- host: "code-server-workspace-vemonet.apps.dsri2.unimaas.nl" paths: ["/"]
nodeSelectorobject{}
openshiftRoute.enabledbooltrue
openshiftRoute.hoststring""
openshiftRoute.pathstring""
openshiftRoute.tls.enabledbooltrue
openshiftRoute.tls.insecureEdgeTerminationPolicystring"Redirect"
openshiftRoute.tls.terminationstring"edge"
openshiftRoute.wildcardPolicystring"None"
passwordstring""
podAnnotationsobject{}
podSecurityContextobject{}
resourcesobject{}
securityContextobject{}
service.portint8080
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createboolfalse
serviceAccount.namestring"anyuid"
storage.enabledbooltrue
storage.mountPathstring"/home/coder/project"
storage.sizestring"5Gi"
tolerationslist[]

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.

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