This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
Not using the ODR image for the k8s static runner #3890
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this fix?
Currently, if you run
waypoint runner install -platform=kubernetes ...
but you don't specify a specific-k8s-runner-image
, you get the ODR image for the static runner, which appears to be incapable of launching ODRs.Reverts this change: https://github.com/hashicorp/waypoint/pull/3800/files#diff-33ed847d2fd425bf13e47f27760372eccaa88ed101ae6f05d13780095f486ab1L263
Only the on-demand runner needs its own image, because it needs kaniko for builds. If you use the ODR image for the static runner, you get this error when attempting to launch tasks (in the static runner logs)
This is what it looks like on the client side during a
waypoint build
:I haven't dug into why the kaniko image can't launch tasks - it seems like it should be able to - but going back to using the server image for the static runner fixes the problem.
Workaround
You can work around this by specifying a non-odr runner image during
waypoint runner install
. I.e.: