1# Default values for code-server.
2# This is a YAML-formatted file.
3# Declare variables to be passed into your templates.
7 repository: cgr.dev/chainguard-private/code-server
8 tag: latest@sha256:4eb4cede4795e0c6b1fc46b5129bcedb0f6caf9ec2fa2219e60907cebb8ec025
10# Specifies one or more secrets to be used when pulling images from a
11# private container repository
12# https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
14# - name: registry-creds
19# The existing secret to use for code-server authentication in the frontend. the password is stored in the secret under the key `password`
22 # Specifies whether a service account should be created
24 # Annotations to add to the service account
26 # The name of the service account to use.
27 # If not set and create is true, a name is generated using the fullname template
29# Specifies annotations for deployment
42 # kubernetes.io/tls-acme: "true"
44 # - host: code-server.example.loc
49 # - secretName: code-server
51 # - code-server.example.loc
52# Optional additional arguments
54# These are the arguments normally passed to code-server; run
55# code-server --help for a list of available options.
57# Each argument and parameter must have its own entry; if you use
58# --param value on the command line, then enter it here as:
63# If you receive an error like "Unknown option --param value", it may be
64# because both the parameter and value are specified as a single argument,
65# rather than two separate arguments (e.g. "- --param value" on a line).
67# Optional additional environment variables
69# - name: DISABLE_TELEMETRY
73# value: "tcp://localhost:2376"
76## Init containers parameters:
77## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
83 image: cgr.dev/chainguard-private/busybox:latest@sha256:4f399a5baa0b754857bd8ccd5878d7748ded9b25978eb760ea5d2f3e64ef36ab
84## Pod Security Context
85## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
92# We usually recommend not to specify default resources and to leave this as a conscious
93# choice for the user. This also increases chances charts run on environments with little
94# resources, such as Minikube. If you do want to specify resources, uncomment the following
95# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
110## Persist data to a persistent volume
113 ## code-server data Persistent Volume Storage Class
114 ## If defined, storageClassName: <storageClass>
115 ## If set to "-", storageClassName: "", which disables dynamic provisioning
116 ## If undefined (the default) or set to null, no storageClassName spec is
117 ## set, choosing the default provisioner. (gp2 on AWS, standard on
118 ## GKE, AWS & OpenStack)
121 accessMode: ReadWriteOnce
133 # - curl -s -L SOME_SCRIPT | bash
134# for dind, the following may be helpful
141# sudo apt-get update \
142# && sudo apt-get install -y docker.io
144## Enable an Specify container in extraContainers.
145## This is meant to allow adding code-server dependencies, like docker-dind.
147# If docker-dind is used, DOCKER_HOST env is mandatory to set in "extraVars"
149# image: docker:28.3.2-dind
150# imagePullPolicy: IfNotPresent
154# ephemeral-storage: "50Gi"
160# - name: DOCKER_TLS_CERTDIR
161# value: "" # disable TLS setup
164# - --host=unix:///var/run/docker.sock
165# - --host=tcp://0.0.0.0:2376
167extraInitContainers: ""
168# - name: customization
169# image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
170# imagePullPolicy: IfNotPresent
173# value: https://open-vsx.org/vscode/gallery
175# value: https://open-vsx.org/vscode/item
180# code-server --install-extension ms-python.python
181# code-server --install-extension golang.Go
184# mountPath: /home/coder
186## Additional code-server secret mounts
188# - name: secret-files
189# mountPath: /etc/secrets
190# subPath: private.key # (optional)
191# secretName: code-server-secret-files
194## Additional code-server volume mounts
196# - name: extra-volume
197# mountPath: /mnt/volume
199# existingClaim: volume-claim
203extraConfigmapMounts: []
204# - name: certs-configmap
205# mountPath: /etc/code-server/ssl/
206# subPath: certificates.crt # (optional)
207# configMap: certs-configmap