docs: clarify envbox version pinning (#13773)

This commit is contained in:
Eric Paulsen
2024-07-02 20:36:08 +00:00
committed by GitHub
parent e40cc9314c
commit 80a2a5d6a8
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -36,7 +36,7 @@ The following environment variables can be used to configure various aspects of
| `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 |
| `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 |
# Migrating Existing Envbox Templates
## Migrating Existing Envbox Templates
Due to the [deprecation and removal of legacy parameters](https://coder.com/docs/v2/latest/templates/parameters#legacy)
it may be necessary to migrate existing envbox templates on newer versions of
@@ -50,6 +50,10 @@ To supply values to existing existing Terraform variables you can specify the
coder templates push envbox --var namespace="mynamespace" --var max_cpus=2 --var min_cpus=1 --var max_memory=4 --var min_memory=1
```
## Version Pinning
The template sets the image tag as `latest`. We highly recommend pinning the image to a specific release of envbox, as the `latest` tag may change.
## Contributions
Contributions are welcome and can be made against the [envbox repo](https://github.com/coder/envbox).
+2 -1
View File
@@ -153,7 +153,8 @@ resource "kubernetes_pod" "main" {
restart_policy = "Never"
container {
name = "dev"
name = "dev"
# We highly recommend pinning this to a specific release of envbox, as the latest tag may change.
image = "ghcr.io/coder/envbox:latest"
image_pull_policy = "Always"
command = ["/envbox", "docker"]