Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

I've hit this exact problem before. The workspace health check is kicking in before your bootstrap script finishes, so you need to tell Kubernetes to wait. Add an initialDelaySeconds to your bootstrap container's liveness/readiness probe that's longer than your bootstrap time. If you're not defining probes explicitly, the deployment is probably using defaults (like 0 initial delay), which is why it's marking unhealthy too early. Set something like initialDelaySeconds: 300 if your script can take up to 5 minutes. Also make sure the probes are pointing at something that won't exist until the Coder agent is actually running - maybe check /var/run/coder-agent.sock or whatever your agent expos…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sureshdevops2013
Comment options

@phorcys420
Comment options

Answer selected by phorcys420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants