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

Use Controller name value for app selectors #573

Merged
merged 1 commit into from
May 22, 2019
Merged

Use Controller name value for app selectors #573

merged 1 commit into from
May 22, 2019

Conversation

Rulox
Copy link
Contributor

@Rulox Rulox commented May 21, 2019

Proposed changes

After upgrading Helm charts to the ones in version 1.5.0 of the Ingress Controller, there was a problem with old rs/pods not being removed correctly.

With this fix, it is possible to use the controller.name to make sure the app selector in deployment/daemonset/service is the same and K8s will update them instead of create new ones.

Note: If using a deployment , the old replicaset will still be there after the update, however, it will have 0 pods. The reason behind it is that the Deployment who is the replicaset owner is still alive, although using a new label. It is safe to remove that replicaset as it doesn't have any pods.

@Rulox Rulox requested review from pleshakov and tellet May 21, 2019 10:37
@Rulox Rulox self-assigned this May 21, 2019
@Rulox Rulox merged commit cec4b1c into master May 22, 2019
@Rulox Rulox deleted the fix-helm-names branch May 22, 2019 10:07
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

Successfully merging this pull request may close these issues.

2 participants