mirror of
https://github.com/coder/code-server.git
synced 2025-07-24 10:08:20 +08:00
Update values.yaml to better support dind (#7431)
This commit is contained in:
@ -75,8 +75,9 @@ extraArgs: []
|
|||||||
extraVars: []
|
extraVars: []
|
||||||
# - name: DISABLE_TELEMETRY
|
# - name: DISABLE_TELEMETRY
|
||||||
# value: "true"
|
# value: "true"
|
||||||
|
# if dind is desired:
|
||||||
# - name: DOCKER_HOST
|
# - name: DOCKER_HOST
|
||||||
# value: "tcp://localhost:2375"
|
# value: "tcp://localhost:2376"
|
||||||
|
|
||||||
##
|
##
|
||||||
## Init containers parameters:
|
## Init containers parameters:
|
||||||
@ -139,25 +140,39 @@ lifecycle:
|
|||||||
# - -c
|
# - -c
|
||||||
# - curl -s -L SOME_SCRIPT | bash
|
# - curl -s -L SOME_SCRIPT | bash
|
||||||
|
|
||||||
|
# for dind, the following may be helpful
|
||||||
|
# postStart:
|
||||||
|
# exec:
|
||||||
|
# command:
|
||||||
|
# - /bin/sh
|
||||||
|
# - -c
|
||||||
|
# - |
|
||||||
|
# sudo apt-get update \
|
||||||
|
# && sudo apt-get install -y docker.io
|
||||||
|
|
||||||
## Enable an Specify container in extraContainers.
|
## Enable an Specify container in extraContainers.
|
||||||
## This is meant to allow adding code-server dependencies, like docker-dind.
|
## This is meant to allow adding code-server dependencies, like docker-dind.
|
||||||
extraContainers: |
|
extraContainers: |
|
||||||
# If docker-dind is used, DOCKER_HOST env is mandatory to set in "extraVars"
|
# If docker-dind is used, DOCKER_HOST env is mandatory to set in "extraVars"
|
||||||
#- name: docker-dind
|
# - name: docker-dind
|
||||||
# image: docker:19.03-dind
|
# image: docker:28.3.2-dind
|
||||||
# imagePullPolicy: IfNotPresent
|
# imagePullPolicy: IfNotPresent
|
||||||
# resources:
|
# resources:
|
||||||
# requests:
|
# requests:
|
||||||
# cpu: 250m
|
# cpu: 1
|
||||||
# memory: 256M
|
# ephemeral-storage: "50Gi"
|
||||||
# securityContext:
|
# memory: 10Gi
|
||||||
# privileged: true
|
# securityContext:
|
||||||
# procMount: Default
|
# privileged: true
|
||||||
# env:
|
# procMount: Default
|
||||||
# - name: DOCKER_TLS_CERTDIR
|
# env:
|
||||||
# value: ""
|
# - name: DOCKER_TLS_CERTDIR
|
||||||
# - name: DOCKER_DRIVER
|
# value: "" # disable TLS setup
|
||||||
# value: "overlay2"
|
# command:
|
||||||
|
# - dockerd
|
||||||
|
# - --host=unix:///var/run/docker.sock
|
||||||
|
# - --host=tcp://0.0.0.0:2376
|
||||||
|
|
||||||
|
|
||||||
extraInitContainers: |
|
extraInitContainers: |
|
||||||
# - name: customization
|
# - name: customization
|
||||||
|
@ -383,6 +383,9 @@ mount into `/home/coder/myproject` from inside the `code-server` container. You
|
|||||||
need to make sure the Docker daemon's `/home/coder/myproject` is the same as the
|
need to make sure the Docker daemon's `/home/coder/myproject` is the same as the
|
||||||
one mounted inside the `code-server` container, and the mount will work.
|
one mounted inside the `code-server` container, and the mount will work.
|
||||||
|
|
||||||
|
If you want Docker enabled when deploying on Kubernetes, look at the `values.yaml`
|
||||||
|
file for the 3 fields: `extraVars`, `lifecycle.postStart`, and `extraContainers`.
|
||||||
|
|
||||||
## How do I disable telemetry?
|
## How do I disable telemetry?
|
||||||
|
|
||||||
Use the `--disable-telemetry` flag to disable telemetry.
|
Use the `--disable-telemetry` flag to disable telemetry.
|
||||||
|
Reference in New Issue
Block a user