2020-09-02 22:41:58 +03:00
|
|
|
|
# Default values for code-server.
|
|
|
|
|
# This is a YAML-formatted file.
|
|
|
|
|
# Declare variables to be passed into your templates.
|
|
|
|
|
|
2020-09-02 23:00:12 +03:00
|
|
|
|
replicaCount: 1
|
|
|
|
|
|
2020-09-02 22:41:58 +03:00
|
|
|
|
image:
|
|
|
|
|
repository: codercom/code-server
|
2021-02-06 00:11:34 +03:00
|
|
|
|
tag: '3.8.1'
|
2020-09-02 22:41:58 +03:00
|
|
|
|
pullPolicy: Always
|
|
|
|
|
|
2020-09-02 23:00:12 +03:00
|
|
|
|
imagePullSecrets: []
|
2020-09-02 22:41:58 +03:00
|
|
|
|
nameOverride: ""
|
|
|
|
|
fullnameOverride: ""
|
|
|
|
|
hostnameOverride: ""
|
|
|
|
|
|
2020-09-02 23:00:12 +03: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
|
|
|
|
|
|
|
|
|
|
securityContext: {}
|
|
|
|
|
# capabilities:
|
|
|
|
|
# drop:
|
|
|
|
|
# - ALL
|
|
|
|
|
# readOnlyRootFilesystem: true
|
|
|
|
|
# runAsNonRoot: true
|
|
|
|
|
# runAsUser: 1000
|
|
|
|
|
|
2020-09-02 22:41:58 +03:00
|
|
|
|
service:
|
2020-09-02 23:05:57 +03:00
|
|
|
|
type: ClusterIP
|
2020-09-03 00:02:37 +03:00
|
|
|
|
port: 8080
|
2020-09-02 22:41:58 +03:00
|
|
|
|
|
|
|
|
|
ingress:
|
|
|
|
|
enabled: false
|
|
|
|
|
#annotations:
|
|
|
|
|
# kubernetes.io/ingress.class: nginx
|
|
|
|
|
# kubernetes.io/tls-acme: "true"
|
|
|
|
|
#hosts:
|
|
|
|
|
# - host: code-server.example.loc
|
|
|
|
|
# paths:
|
|
|
|
|
# - /
|
|
|
|
|
|
|
|
|
|
#tls:
|
|
|
|
|
# - secretName: code-server
|
|
|
|
|
# hosts:
|
|
|
|
|
# - code-server.example.loc
|
|
|
|
|
|
|
|
|
|
# Optional additional arguments
|
|
|
|
|
extraArgs: []
|
|
|
|
|
# - --allow-http
|
|
|
|
|
# - --no-auth
|
|
|
|
|
|
|
|
|
|
# Optional additional environment variables
|
|
|
|
|
extraVars: []
|
|
|
|
|
# - name: DISABLE_TELEMETRY
|
|
|
|
|
# value: true
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
## 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-14 01:08:05 +03:00
|
|
|
|
size: 10Gi
|
2020-09-02 22:41:58 +03:00
|
|
|
|
annotations: {}
|
2020-10-12 13:46:52 +03:00
|
|
|
|
# existingClaim: ""
|
2020-10-12 14:59:53 +03:00
|
|
|
|
# hostPath: /data
|
2020-09-02 22:41:58 +03:00
|
|
|
|
|
|
|
|
|
serviceAccount:
|
|
|
|
|
create: true
|
|
|
|
|
name:
|
|
|
|
|
|
|
|
|
|
## Enable an Specify container in extraContainers.
|
|
|
|
|
## This is meant to allow adding code-server dependencies, like docker-dind.
|
|
|
|
|
extraContainers: |
|
|
|
|
|
#- 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"
|
|
|
|
|
|
|
|
|
|
## Additional code-server secret mounts
|
|
|
|
|
extraSecretMounts: []
|
|
|
|
|
# - name: secret-files
|
|
|
|
|
# mountPath: /etc/secrets
|
|
|
|
|
# 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 14:59:53 +03:00
|
|
|
|
# hostPath: ""
|
2020-09-02 22:41:58 +03:00
|
|
|
|
|
|
|
|
|
extraConfigmapMounts: []
|
|
|
|
|
# - name: certs-configmap
|
|
|
|
|
# mountPath: /etc/code-server/ssl/
|
|
|
|
|
# subPath: certificates.crt # (optional)
|
|
|
|
|
# configMap: certs-configmap
|
|
|
|
|
# readOnly: true
|