Skip to content

chore: add info re: always updating images #2635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: add warning and faster option
  • Loading branch information
Katie Horne committed Jun 28, 2022
commit f42a33dc760f6d80a7970f167c9f29348c23463c
11 changes: 8 additions & 3 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,14 @@ resource "docker_container" "workspace" {

#### Using updated images when rebuilding a workspace

To ensure that Coder uses an updated image when rebuilding a workspace, set the
`imagePullPolicy` to `Always` in your Terraform template; when set, Coder will
check `image:tag` on every build and update if necessary:
To ensure that Coder uses an updated image when rebuilding a workspace, we
suggest that admins update the tag in the template (e.g., `my-image:v0.4.2` ->
`my-image:v0.4.3`) or digest (`my-image@sha256:[digest]` ->
`my-image@sha256:[new_digest]`).

Alternatively, if you're willing to wait for longer start times from Coder, you
can set the `imagePullPolicy` to `Always` in your Terraform template; when set,
Coder will check `image:tag` on every build and update if necessary:

```tf
resource "kubernetes_pod" "podName" {
Expand Down