Skip to content
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

Pod tolerations cause recreate loop with recreate updateStrategy #863

Open
ikreymer opened this issue Sep 2, 2023 · 2 comments
Open

Pod tolerations cause recreate loop with recreate updateStrategy #863

ikreymer opened this issue Sep 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ikreymer
Copy link

ikreymer commented Sep 2, 2023

I noticed an issue when using CompositeController mode with controlling pods directly: it seems that defining the tolerations field can cause a pod to go into a recreate loop if the tolerations aren't exactly matched.
Since kubernetes adds tolerations like node.kubernetes.io/not-ready and node.kubernetes.io/unreachable automatically, a CompositeController that manages pods with Recreate will enter into a recreate loop if these tolerations aren't defined, but other tolerations are.

It seems like Recreate should ignore fields like tolerations, which are designed to be added to pods while they're running?
Or am I missing something?

It appears that I can work around this by adding the node.kubernetes.io/not-ready and node.kubernetes.io/unreachable tolerations explicitly to the child pods (or not using tolerations at all).

@grzesuav
Copy link
Contributor

grzesuav commented Sep 6, 2023

hmm I guess it has something to do with how metacontroller try to smart-detect merge keys for list #562 (comment)

@grzesuav grzesuav added the bug Something isn't working label Sep 6, 2023
@grzesuav
Copy link
Contributor

@ikreymer can you attach metacontroller logs with debug level 7 ? Or simple case to recreate ? I will see if it is possible to mitigate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants