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

Flag --recreate-pods broken #3372

Closed
unguiculus opened this issue Jan 22, 2018 · 5 comments
Closed

Flag --recreate-pods broken #3372

unguiculus opened this issue Jan 22, 2018 · 5 comments
Assignees

Comments

@unguiculus
Copy link
Member

The flag --recreate-pods no longer works as expected. There are two problems:

  • If there is no patch, recreation is not executed. But excactly when there is no patch the flag would be useful. When the feature was added, the function would not immediately return when there was no patch. The following commit seems to have changed this: 0f461ba#diff-a483d6c0863082c3df21f4aad513afe2R394. Was this change intentional?
  • Only resources with specific API versions have been eligible for a restart since the check for a selector was introduced in fix(kube): prevent recreating pods without a selector #1956. I'm working on a fix for the first point. I managed to get recreation working for Deployments with APIVersion extensions/v1beta1 only, not for apps/v1beta1 onwards. This should not depend on specific APIVersions.
@unguiculus
Copy link
Member Author

#3373 fixes the first part of the problem.

@unguiculus
Copy link
Member Author

I pushed another commit to the PR that fixes the second part.

@mattfarina
Copy link
Collaborator

/assign

@josdotso
Copy link

@bacongobbler , @mattfarina , @unguiculus

Is it possible that this patch is the reason my upgrade with recreate pods immediately terminates all pods in my StatefulSet? I find the same result with updateStrategy OnDelete as with RollingUpdate.

Ideally, recreate pods would do a rolling update where appropriate and block where OnDelete is used -- and I believe this was previously the case (as of tiller v2.8.0). OnDelete required manual intervention even when supplying recreate pods on v2.8.0. Rolling update allowed the recreate pods flag to roll through pods.

On a cluster with tiller v2.8.2 I lost zookeeper quorum in this way.

Thoughts?

@timm088
Copy link

timm088 commented Jan 30, 2019

@josdotso , did you ever find further detail about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants