-
Notifications
You must be signed in to change notification settings - Fork 903
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
Use of native SidecarContainers (init container with restartPolicy: Always
) results in pod status getting stuck on Init
#3366
Comments
We will also need to add logic to allow the spec to support redinessProbe and startupProbe for
side question, @martynd are you able to confirm that the rollout spec works with |
@phyzical Im not sure actually as the use cases we have get the restart always init containers added at pod creation via mutation webhooks (istio and gcsfuse csi) It may be possible to manually edit the live rollout object to have the correct restart policy (similar to other cases where argo doesnt want to change things due to managed fields) but I suspect you will get a validation error there too I recall from [https://github.com//issues/3130](this bug) that the deployment part of the rollout spec is validated against the k8s libraries deployment validation which would be fine since its a valid 1.28+ spec deployment spec except that rollouts is built against the 1.26 k8s apis That said, it looks like the 1.7 branch is built against 1.29 as of this commit 2dc71e3 which should at least get it to validate |
Ill have another sniff at the source to see if theres any comments as to why it does this edit: hmmm but i see this ref
Ah actually, the helm's crds still havn't been updated so pining the containing to 1.7 doesn't help the crd side ofc After manually applying the updated crd all works as expected thanks 🦆 |
Pretty actual, it's appear to be a blocker to enable native sidecars for istio as sidecars now can't work properly with Argo Rollouts. This one is critical to release |
This is very important! It's blocking us from using Argo Rollouts |
…ixes #3366 (#3639) * Update pod status logic to support native sidecars Signed-off-by: Martyn Dale <[email protected]> * Fix lint issues Signed-off-by: Martyn Dale <[email protected]> --------- Signed-off-by: Martyn Dale <[email protected]>
K8s 1.29 enables the
SidecarContainers
feature gate by default (more info on the native sidecars here https://kubernetes.io/docs/concepts/workloads/pods/sidecar-containers/)These are defined as
initContainers
with therestartPolicy
set toAlways
This change in logic results in pods being perpetually (visually) stuck in the Init phase
This appears to have affected various software which interacts with k8s, eg the following issue on
k9s
derailed/k9s#2520
Screenshots
![Screenshot 2024-02-13 at 11 07 29 AM](https://private-user-images.githubusercontent.com/669891/304525641-c2ebe23b-da86-4df5-a945-7e76e87d5106.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4MTc5NjMsIm5iZiI6MTczODgxNzY2MywicGF0aCI6Ii82Njk4OTEvMzA0NTI1NjQxLWMyZWJlMjNiLWRhODYtNGRmNS1hOTQ1LTdlNzZlODdkNTEwNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQwNDU0MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02ZWU4YThkYzU1OGY0Y2UyOTg5YTlmYjcwYmU2NTgzYjdhMjAxZmNiNTIxZDI1ZWJhNzRkYTVmZWZmNGNmMjc4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.L6kgLXSzZqREaL2_0Xj1e2G3ATuv2o214p3TpUlXK1M)
The text was updated successfully, but these errors were encountered: