code-server

by alekc

Helm chartv0.1.1App 4.10.1Verified publisher

Run a VS Code in your cluster

About this chart

code-server

Installing the chart

To install the chart with the release name my-release

$ helm repo add alekc-charts https://charts.alekc.dev
$ helm install --name my-release alekc-charts/code-server

Maintainers

NameEmailUrl
alekc[email protected]https://blog.alekc.org

Values

KeyTypeDefaultDescription
affinityobject{}
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
deployment.strategyobject{"type":"RollingUpdate"}Deployment strategy
envobject{"full":[],"simple":{"PGID":"1000","PUID":"1000","TZ":"Europe/London"}}environment values
env.fulllist[]full envs, they will be rendered as written here. Useful if you need to use secrets/cm
env.simpleobject{"PGID":"1000","PUID":"1000","TZ":"Europe/London"}simple key: val based env vars
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"linuxserver/code-server"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""
nodeSelectorobject{}
persistence.accessModestring"ReadWriteOnce"
persistence.additionalMountslist[]
persistence.additionalVolumeslist[]
persistence.enabledbooltrue
persistence.existingClaimstring""
persistence.sizestring"800Mi"
persistence.storageClassstring""
podAnnotationsobject{}
podSecurityContextobject{}
rbac.admin.enabledboolfalseIf set to true, will give admin rights to the cluster where code-server is running. Enable it only if you know what you are doing and your instance is protected by password / oauth
rbac.admin.roleNamestring"cluster-admin"Pre existing admin role name. Normally you would have admin, cluster-admin, edit, and view out of box
rbac.enabledbooltrue
replicaCountint1
resourcesobject{}
securityContextobject{}
service.portint8443
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
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.1 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