2020-09-02 21:41:58 +02:00
|
|
|
|
# Default values for code-server.
|
|
|
|
|
# This is a YAML-formatted file.
|
|
|
|
|
# Declare variables to be passed into your templates.
|
|
|
|
|
|
2020-09-02 22:00:12 +02:00
|
|
|
|
replicaCount: 1
|
|
|
|
|
|
2020-09-02 21:41:58 +02:00
|
|
|
|
image:
|
|
|
|
|
repository: codercom/code-server
|
2022-12-16 20:07:36 +01:00
|
|
|
|
tag: '4.9.1'
|
2020-09-02 21:41:58 +02:00
|
|
|
|
pullPolicy: Always
|
|
|
|
|
|
2022-02-14 23:34:07 +01:00
|
|
|
|
# Specifies one or more secrets to be used when pulling images from a
|
|
|
|
|
# private container repository
|
|
|
|
|
# https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry
|
2020-09-02 22:00:12 +02:00
|
|
|
|
imagePullSecrets: []
|
2022-02-14 23:34:07 +01:00
|
|
|
|
# - name: registry-creds
|
|
|
|
|
|
2020-09-02 21:41:58 +02:00
|
|
|
|
nameOverride: ""
|
|
|
|
|
fullnameOverride: ""
|
|
|
|
|
hostnameOverride: ""
|
|
|
|
|
|
2020-09-02 22:00:12 +02:00
|
|
|
|
serviceAccount:
|
|
|
|
|
# Specifies whether a service account should be created
|
|
|
|
|
create: true
|
|
|
|
|
# Annotations to add to the service account
|
|
|
|
|
annotations: {}
|
|
|
|
|
# The name of the service account to use.
|
|
|
|
|
# If not set and create is true, a name is generated using the fullname template
|
|
|
|
|
name: ""
|
|
|
|
|
|
|
|
|
|
podAnnotations: {}
|
|
|
|
|
|
|
|
|
|
podSecurityContext: {}
|
|
|
|
|
# fsGroup: 2000
|
|
|
|
|
|
2022-07-18 21:27:54 +02:00
|
|
|
|
priorityClassName: ""
|
|
|
|
|
|
2020-09-02 21:41:58 +02:00
|
|
|
|
service:
|
2020-09-02 22:05:57 +02:00
|
|
|
|
type: ClusterIP
|
2020-09-02 23:02:37 +02:00
|
|
|
|
port: 8080
|
2020-09-02 21:41:58 +02:00
|
|
|
|
|
|
|
|
|
ingress:
|
|
|
|
|
enabled: false
|
|
|
|
|
#annotations:
|
|
|
|
|
# kubernetes.io/tls-acme: "true"
|
|
|
|
|
#hosts:
|
|
|
|
|
# - host: code-server.example.loc
|
|
|
|
|
# paths:
|
|
|
|
|
# - /
|
2022-02-11 00:16:35 +01:00
|
|
|
|
ingressClassName: ""
|
2020-09-02 21:41:58 +02:00
|
|
|
|
#tls:
|
|
|
|
|
# - secretName: code-server
|
|
|
|
|
# hosts:
|
|
|
|
|
# - code-server.example.loc
|
|
|
|
|
|
|
|
|
|
# Optional additional arguments
|
|
|
|
|
extraArgs: []
|
2021-08-25 00:30:04 +02:00
|
|
|
|
# These are the arguments normally passed to code-server; run
|
|
|
|
|
# code-server --help for a list of available options.
|
|
|
|
|
#
|
|
|
|
|
# Each argument and parameter must have its own entry; if you use
|
|
|
|
|
# --param value on the command line, then enter it here as:
|
|
|
|
|
#
|
|
|
|
|
# - --param
|
|
|
|
|
# - value
|
|
|
|
|
#
|
|
|
|
|
# If you receive an error like "Unknown option --param value", it may be
|
|
|
|
|
# because both the parameter and value are specified as a single argument,
|
|
|
|
|
# rather than two separate arguments (e.g. "- --param value" on a line).
|
2020-09-02 21:41:58 +02:00
|
|
|
|
|
|
|
|
|
# Optional additional environment variables
|
|
|
|
|
extraVars: []
|
|
|
|
|
# - name: DISABLE_TELEMETRY
|
|
|
|
|
# value: true
|
2022-03-30 20:19:58 +02:00
|
|
|
|
# - name: DOCKER_HOST
|
|
|
|
|
# value: "tcp://localhost:2375"
|
2020-09-02 21:41:58 +02:00
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
## Init containers parameters:
|
|
|
|
|
## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
|
|
|
|
|
##
|
|
|
|
|
volumePermissions:
|
|
|
|
|
enabled: true
|
|
|
|
|
securityContext:
|
|
|
|
|
runAsUser: 0
|
|
|
|
|
|
|
|
|
|
## Pod Security Context
|
|
|
|
|
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
|
|
|
|
|
##
|
|
|
|
|
securityContext:
|
|
|
|
|
enabled: true
|
|
|
|
|
fsGroup: 1000
|
|
|
|
|
runAsUser: 1000
|
|
|
|
|
|
|
|
|
|
resources: {}
|
|
|
|
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
|
|
|
|
# choice for the user. This also increases chances charts run on environments with little
|
|
|
|
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
|
|
|
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
|
|
|
# limits:
|
|
|
|
|
# cpu: 100m
|
|
|
|
|
# memory: 128Mi
|
|
|
|
|
# requests:
|
|
|
|
|
# cpu: 100m
|
|
|
|
|
# memory: 1000Mi
|
|
|
|
|
|
|
|
|
|
nodeSelector: {}
|
|
|
|
|
|
|
|
|
|
tolerations: []
|
|
|
|
|
|
|
|
|
|
affinity: {}
|
|
|
|
|
|
|
|
|
|
## Persist data to a persistent volume
|
|
|
|
|
persistence:
|
|
|
|
|
enabled: true
|
|
|
|
|
## code-server data Persistent Volume Storage Class
|
|
|
|
|
## If defined, storageClassName: <storageClass>
|
|
|
|
|
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
|
|
|
|
## If undefined (the default) or set to null, no storageClassName spec is
|
|
|
|
|
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
|
|
|
|
## GKE, AWS & OpenStack)
|
|
|
|
|
##
|
|
|
|
|
# storageClass: "-"
|
|
|
|
|
accessMode: ReadWriteOnce
|
2020-11-13 23:08:05 +01:00
|
|
|
|
size: 10Gi
|
2020-09-02 21:41:58 +02:00
|
|
|
|
annotations: {}
|
2020-10-12 12:46:52 +02:00
|
|
|
|
# existingClaim: ""
|
2020-10-12 13:59:53 +02:00
|
|
|
|
# hostPath: /data
|
2020-09-02 21:41:58 +02:00
|
|
|
|
|
2022-08-09 21:40:05 +02:00
|
|
|
|
lifecycle:
|
|
|
|
|
enabled: false
|
|
|
|
|
# postStart:
|
|
|
|
|
# exec:
|
|
|
|
|
# command:
|
|
|
|
|
# - /bin/bash
|
|
|
|
|
# - -c
|
|
|
|
|
# - curl -s -L SOME_SCRIPT | bash
|
|
|
|
|
|
2020-09-02 21:41:58 +02:00
|
|
|
|
## Enable an Specify container in extraContainers.
|
|
|
|
|
## This is meant to allow adding code-server dependencies, like docker-dind.
|
|
|
|
|
extraContainers: |
|
2022-03-30 20:19:58 +02:00
|
|
|
|
# If docker-dind is used, DOCKER_HOST env is mandatory to set in "extraVars"
|
2020-09-02 21:41:58 +02:00
|
|
|
|
#- name: docker-dind
|
|
|
|
|
# image: docker:19.03-dind
|
|
|
|
|
# imagePullPolicy: IfNotPresent
|
|
|
|
|
# resources:
|
|
|
|
|
# requests:
|
|
|
|
|
# cpu: 250m
|
|
|
|
|
# memory: 256M
|
|
|
|
|
# securityContext:
|
|
|
|
|
# privileged: true
|
|
|
|
|
# procMount: Default
|
|
|
|
|
# env:
|
|
|
|
|
# - name: DOCKER_TLS_CERTDIR
|
|
|
|
|
# value: ""
|
|
|
|
|
# - name: DOCKER_DRIVER
|
|
|
|
|
# value: "overlay2"
|
|
|
|
|
|
2022-08-01 17:31:20 +02:00
|
|
|
|
extraInitContainers: |
|
|
|
|
|
# - name: customization
|
|
|
|
|
# image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
|
|
|
|
# imagePullPolicy: IfNotPresent
|
|
|
|
|
# env:
|
|
|
|
|
# - name: SERVICE_URL
|
|
|
|
|
# value: https://open-vsx.org/vscode/gallery
|
|
|
|
|
# - name: ITEM_URL
|
|
|
|
|
# value: https://open-vsx.org/vscode/item
|
|
|
|
|
# command:
|
|
|
|
|
# - sh
|
|
|
|
|
# - -c
|
|
|
|
|
# - |
|
|
|
|
|
# code-server --install-extension ms-python.python
|
|
|
|
|
# code-server --install-extension golang.Go
|
|
|
|
|
# volumeMounts:
|
|
|
|
|
# - name: data
|
|
|
|
|
# mountPath: /home/coder
|
|
|
|
|
|
2020-09-02 21:41:58 +02:00
|
|
|
|
## Additional code-server secret mounts
|
|
|
|
|
extraSecretMounts: []
|
|
|
|
|
# - name: secret-files
|
|
|
|
|
# mountPath: /etc/secrets
|
2023-02-13 20:01:32 +01:00
|
|
|
|
# subPath: private.key # (optional)
|
2020-09-02 21:41:58 +02:00
|
|
|
|
# secretName: code-server-secret-files
|
|
|
|
|
# readOnly: true
|
|
|
|
|
|
|
|
|
|
## Additional code-server volume mounts
|
|
|
|
|
extraVolumeMounts: []
|
|
|
|
|
# - name: extra-volume
|
|
|
|
|
# mountPath: /mnt/volume
|
|
|
|
|
# readOnly: true
|
|
|
|
|
# existingClaim: volume-claim
|
2020-10-12 13:59:53 +02:00
|
|
|
|
# hostPath: ""
|
2020-09-02 21:41:58 +02:00
|
|
|
|
|
|
|
|
|
extraConfigmapMounts: []
|
|
|
|
|
# - name: certs-configmap
|
|
|
|
|
# mountPath: /etc/code-server/ssl/
|
|
|
|
|
# subPath: certificates.crt # (optional)
|
|
|
|
|
# configMap: certs-configmap
|
|
|
|
|
# readOnly: true
|
2023-02-13 19:56:05 +01:00
|
|
|
|
|
|
|
|
|
extraPorts: []
|
|
|
|
|
# - name: minecraft
|
|
|
|
|
# port: 25565
|
|
|
|
|
# protocol: tcp
|