Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80a2a5d

Browse files
authored
docs: clarify envbox version pinning (#13773)
1 parente40cc93 commit80a2a5d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

‎examples/templates/envbox/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following environment variables can be used to configure various aspects of
3636
|`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|
3737
|`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|
3838

39-
#Migrating Existing Envbox Templates
39+
##Migrating Existing Envbox Templates
4040

4141
Due to the[deprecation and removal of legacy parameters](https://coder.com/docs/v2/latest/templates/parameters#legacy)
4242
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
5050
coder templates push envbox --var namespace="mynamespace" --var max_cpus=2 --var min_cpus=1 --var max_memory=4 --var min_memory=1
5151
```
5252

53+
##Version Pinning
54+
55+
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.
56+
5357
##Contributions
5458

5559
Contributions are welcome and can be made against the[envbox repo](https://github.com/coder/envbox).

‎examples/templates/envbox/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ resource "kubernetes_pod" "main" {
153153
restart_policy="Never"
154154

155155
container {
156-
name="dev"
156+
name="dev"
157+
# We highly recommend pinning this to a specific release of envbox, as the latest tag may change.
157158
image="ghcr.io/coder/envbox:latest"
158159
image_pull_policy="Always"
159160
command=["/envbox","docker"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp