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

Don't remove Kubernetes certificates and containerd if skipped #1002

Merged

Conversation

claudiubelu
Copy link
Contributor

Currently, if the k8sd/v1alpha/lifecycle/skip-stop-services-on-remove annotation is set, we're not stopping the Kubernetes-related services, but we're still removing its certificates and containerd-related paths. This will end up paralyzing services like kubelet, which might have to do Pod evictions, blocking it from finishing its job, and resulting CAPI not being able to complete its downscaling or upgrade operations.

We should remove those certificates only if we're also stopping the services.

@claudiubelu claudiubelu requested a review from a team as a code owner January 23, 2025 13:58
Copy link
Contributor

@eaudetcobello eaudetcobello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Please address the comment before merge.

Currently, if the k8sd/v1alpha/lifecycle/skip-stop-services-on-remove
annotation is set, we're not stopping the Kubernetes-related services,
but we're still removing its certificates and containerd-related paths.
This will end up paralyzing services like kubelet, which might have to
do Pod evictions, blocking it from finishing its job, and resulting CAPI
not being able to complete its downscaling or upgrade operations.

We should remove those certificates only if we're also stopping the
services.
@claudiubelu claudiubelu force-pushed the node-cleanup-annotation-skip branch from fa3d5fc to dae393e Compare January 24, 2025 09:44
@eaudetcobello eaudetcobello merged commit 934a2fb into canonical:main Jan 24, 2025
18 checks passed
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