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.
| Parameter | Description | Default |
|---|---|---|
image.repository | Docker image repository | "kodelib/code-server" |
image.pullPolicy | Kubernetes image pull policy | "IfNotPresent" |
image.tag | Docker image tag | "" |
imagePullSecrets | Kubernetes docker registry secret | [] |
nameOverride | String to partially override fullname | "" |
fullnameOverride | String to fully override fullname | "" |
serviceAccount.create | Enable creation of service account | true |
serviceAccount.annotations | Additional annotations for the service account | {} |
serviceAccount.name | The name of the service account to use. | "" |
podAnnotations | Annotations for pods | {} |
podSecurityContext | Pod security context | {} |
securityContext | Security context | {} |
service.type | Kubernetes Service type | "ClusterIP" |
service.port | Kubernetes Service HTTP port | 80 |
sidecar.image.repository | Docker image repository for sidecar | "kodelib/code-server-sidecar" |
sidecar.image.pullPolicy | Kubernetes image pull policy for sidecar | "IfNotPresent" |
sidecar.image.tag | Docker image tag for sidecar | "0.1.0" |
ingress.enabled | Enable ingress controller resource | false |
ingress.annotations | Ingress annotations | {} |
ingress.hosts | [{"host": "chart-example.local", "paths": []}] | |
ingress.tls | [] | |
persistence.enabled | Enable code-server data persistence using PVC | false |
persistence.accessMode | PVC Access Mode for code-server data volume | "ReadWriteOnce" |
persistence.size | PVC Storage Request for code-server data volume | "1Gi" |
persistence.storageClass | PVC Storage Class for code-server data volume | null |
resources | Pod resources | {} |
nodeSelector | Node labels for pod assignment | {} |
tolerations | Tolerations for pod assignment | [] |
affinity | Affinity for pod assignment | {} |
app.base_path | code-server web application base path | "/" |
app.env | code-server additional environment variables | {} |
app.args | code-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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcode-server is pinned at v0.3.11 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