code-server

by KodeLib

Helm chartv0.3.11App 3.9.3-r1-ubuntuVerified publisher

Running code-server inside Kubernetes

About this chart

Code-server

Running code-server inside Kubernetes

Installation

helm repo add kodelib https://helm.kodelib.com
helm install my-code-server kodelib/code-server

Notes

By default the chart will use the Ubuntu variant of the image, there's also an Alpine variant if you want to run lighter.

Configuration

The following table lists the configurable parameters of the Code-server chart and their default values.

ParameterDescriptionDefault
image.repositoryDocker image repository"kodelib/code-server"
image.pullPolicyKubernetes image pull policy"IfNotPresent"
image.tagDocker image tag""
imagePullSecretsKubernetes docker registry secret[]
nameOverrideString to partially override fullname""
fullnameOverrideString to fully override fullname""
serviceAccount.createEnable creation of service accounttrue
serviceAccount.annotationsAdditional annotations for the service account{}
serviceAccount.nameThe name of the service account to use.""
podAnnotationsAnnotations for pods{}
podSecurityContextPod security context{}
securityContextSecurity context{}
service.typeKubernetes Service type"ClusterIP"
service.portKubernetes Service HTTP port80
sidecar.image.repositoryDocker image repository for sidecar"kodelib/code-server-sidecar"
sidecar.image.pullPolicyKubernetes image pull policy for sidecar"IfNotPresent"
sidecar.image.tagDocker image tag for sidecar"0.1.0"
ingress.enabledEnable ingress controller resourcefalse
ingress.annotationsIngress annotations{}
ingress.hosts[{"host": "chart-example.local", "paths": []}]
ingress.tls[]
persistence.enabledEnable code-server data persistence using PVCfalse
persistence.accessModePVC Access Mode for code-server data volume"ReadWriteOnce"
persistence.sizePVC Storage Request for code-server data volume"1Gi"
persistence.storageClassPVC Storage Class for code-server data volumenull
resourcesPod resources{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
affinityAffinity for pod assignment{}
app.base_pathcode-server web application base path"/"
app.envcode-server additional environment variables{}
app.argscode-server additional arguments["--host=0.0.0.0", "--disable-telemetry"]

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.3.11 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