You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`CODER_INNER_IMAGE`| The image to use for the inner container. | True |
16
-
|`CODER_INNER_USERNAME`| The username to use for the inner container. | True |
17
-
|`CODER_AGENT_TOKEN`| The [Coder Agent](https://coder.com/docs/v2/latest/about/architecture#agents) token to pass to the inner container. | True |
18
-
|`CODER_INNER_ENVS`| The environment variables to pass to the inner container. A wildcard can be used to match a prefix. Ex: `CODER_INNER_ENVS=KUBERNETES_*,MY_ENV,MY_OTHER_ENV`| false |
19
-
|`CODER_INNER_HOSTNAME`| The hostname to use for the inner container. | false |
20
-
|`CODER_IMAGE_PULL_SECRET`| The docker credentials to use when pulling the inner container. The recommended way to do this is to create an [Image Pull Secret](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#registry-secret-existing-credentials) and then reference the secret using an [environment variable](https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#define-container-environment-variables-using-secret-data). | false |
21
-
|`CODER_DOCKER_BRIDGE_CIDR`| The bridge CIDR to start the Docker daemon with. | false |
22
-
|`CODER_MOUNTS`| A list of mounts to mount into the inner container. Mounts default to `rw`. Ex: `CODER_MOUNTS=/home/coder:/home/coder,/var/run/mysecret:/var/run/mysecret:ro`| false |
23
-
|`CODER_USR_LIB_DIR`| The mountpoint of the host `/usr/lib` directory. Only required when using GPUs. | false |
24
-
|`CODER_ADD_TUN`| If `CODER_ADD_TUN=true` add a TUN device to the inner container. | false |
25
-
|`CODER_ADD_FUSE`| If `CODER_ADD_FUSE=true` add a FUSE device to the inner container. | false |
26
-
|`CODER_ADD_GPU`| If `CODER_ADD_GPU=true` add detected GPUs and related files to the inner container. Requires setting `CODER_USR_LIB_DIR` and mounting in the hosts `/usr/lib/` directory. | false |
27
-
|`CODER_CPUS`| Dictates the number of CPUs to allocate the inner container. It is recommended to set this using the Kubernetes [Downward API](https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#use-container-fields-as-values-for-environment-variables). | false |
28
-
|`CODER_MEMORY`| Dictates the max memory (in bytes) to allocate the inner container. It is recommended to set this using the Kubernetes [Downward API](https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#use-container-fields-as-values-for-environment-variables). | false |
29
-
|`CODER_DISABLE_IDMAPPED_MOUNT`| Disables idmapped mounts in sysbox. For more information, see the [Sysbox Documentation](https://github.com/nestybox/sysbox/blob/master/docs/user-guide/configuration.md#disabling-id-mapped-mounts-on-sysbox). | false |
|`CODER_INNER_IMAGE`| The image to use for the inner container. | True |
16
+
|`CODER_INNER_USERNAME`| The username to use for the inner container. | True |
17
+
|`CODER_AGENT_TOKEN`| The [Coder Agent](https://coder.com/docs/v2/latest/about/architecture#agents) token to pass to the inner container. | True |
18
+
|`CODER_INNER_ENVS`| The environment variables to pass to the inner container. A wildcard can be used to match a prefix. Ex: `CODER_INNER_ENVS=KUBERNETES_*,MY_ENV,MY_OTHER_ENV`| false |
19
+
|`CODER_INNER_HOSTNAME`| The hostname to use for the inner container. | false |
20
+
|`CODER_IMAGE_PULL_SECRET`| The docker credentials to use when pulling the inner container. The recommended way to do this is to create an [Image Pull Secret](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-secret-by-providing-credentials-on-the-command-line) and then reference the secret using an [environment variable](https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#define-container-environment-variables-using-secret-data). See below for example. | false |
21
+
|`CODER_DOCKER_BRIDGE_CIDR`| The bridge CIDR to start the Docker daemon with. | false |
22
+
|`CODER_MOUNTS`| A list of mounts to mount into the inner container. Mounts default to `rw`. Ex: `CODER_MOUNTS=/home/coder:/home/coder,/var/run/mysecret:/var/run/mysecret:ro`| false |
23
+
|`CODER_USR_LIB_DIR`| The mountpoint of the host `/usr/lib` directory. Only required when using GPUs. | false |
24
+
|`CODER_ADD_TUN`| If `CODER_ADD_TUN=true` add a TUN device to the inner container. | false |
25
+
|`CODER_ADD_FUSE`| If `CODER_ADD_FUSE=true` add a FUSE device to the inner container. | false |
26
+
|`CODER_ADD_GPU`| If `CODER_ADD_GPU=true` add detected GPUs and related files to the inner container. Requires setting `CODER_USR_LIB_DIR` and mounting in the hosts `/usr/lib/` directory. | false |
27
+
|`CODER_CPUS`| Dictates the number of CPUs to allocate the inner container. It is recommended to set this using the Kubernetes [Downward API](https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#use-container-fields-as-values-for-environment-variables). | false |
28
+
|`CODER_MEMORY`| Dictates the max memory (in bytes) to allocate the inner container. It is recommended to set this using the Kubernetes [Downward API](https://kubernetes.io/docs/tasks/inject-data-application/environment-variable-expose-pod-information/#use-container-fields-as-values-for-environment-variables). | false |
29
+
|`CODER_DISABLE_IDMAPPED_MOUNT`| Disables idmapped mounts in sysbox. For more information, see the [Sysbox Documentation](https://github.com/nestybox/sysbox/blob/master/docs/user-guide/configuration.md#disabling-id-mapped-mounts-on-sysbox). | false |
30
30
31
31
## Coder Template
32
32
@@ -37,3 +37,29 @@ To learn more about Coder Templates refer to the [docs](https://coder.com/docs/v
37
37
## Development
38
38
39
39
It is not possible to develop `envbox` effectively using a containerized environment (includes developing `envbox` using `envbox`). A VM, personal machine, or similar environment is required to run the [integration](./integration/) test suite.
40
+
41
+
## CODER_IMAGE_PULL_SECRET Kubernetes Example
42
+
43
+
If a login is required to pull images from a private repository, create a secret following the instructions from the [Kubernetes Documentation](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-secret-by-providing-credentials-on-the-command-line) as such:
0 commit comments