Workspace marked unhealthy while bootstrap entrypoint is still running #22059
sureshdevops2013
started this conversation in
Coder
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
In our Coder Terraform template, the kubernetes_deployment resource provisions two containers:
The bootstrap container uses a heredoc script as its entrypoint. This script is responsible for:
Problem
If the entrypoint script takes longer than expected to complete, the workspace is marked as unhealthy. Once the Coder agent starts inside the devcontainer, the workspace status eventually turns green.
This behavior causes temporary unhealthy states during normal startup when provisioning takes longer.
Question
Is there a recommended way to prevent the workspace from being marked unhealthy while the bootstrap entrypoint script is still running?
For example:
Adjusting health checks?
Delaying readiness checks?
Any guidance would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions