-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Create a binary for Affinity Assistant used as a placeholder pod #2640
Comments
@bobcatfish as quickly discussed today, the hardcoded nginx image is most likely gonna be a blocker for openshift-pipelines 😅 We can use a flag for this and still using nginx but allowing openshift-pipelines (and other integrator) to customize the image. |
Just run indefinitely. We could potentially use it for other things as well, if we want. For this use case, it is just a pod with specific labels, so that taskRun-pods can configure podAffinity to attract that pod, so they are scheduled to the same Node. |
It could (not sure) be nice to reuse the nop image (see #2714) and give it two modes: exit successfully immediately no matter what (nop), or run indefinitely no matter what (affinity assistant). |
The run indefinitely option sounds a lot like the k8s pause container: https://www.ianlewis.org/en/almighty-pause-container we could maybe reuse that one - it is already optimized to be tiny and run forever with 0 CPU footprint. |
Source for it here: https://github.com/kubernetes/kubernetes/tree/master/build/pause |
This was requested in #2630 (comment)
Expected Behavior
A small, minimal binary, e.g. an Go http service.
Actual Behavior
We currently use an Nginx image for this.
The text was updated successfully, but these errors were encountered: