Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Taint bootstrap kubelet and drain the node before shutting down self-hosted kubelet #15

Open
invidian opened this issue Feb 7, 2020 · 0 comments
Labels
area/kubernetes Core Kubernetes stuff area/updates Items related to updates kind/enhancement New feature or request

Comments

@invidian
Copy link
Member

invidian commented Feb 7, 2020

To avoid the impact of configuration drift between self-hosted and bootstrap kubelet, it make sense for bootstrap kubelet to only handle self-hosted kubelet pod. All other pods should be then handled with self-hosted kubelet.

This way, if bootstrap kubelet does not have certain option configured (e.g. host mount), it won't affect the pod needing it (for example when mounting PVCs)

We could make bootstrap kubelet register with extra taint, which then self-hosted kubelet should remove after it's ready.

The same way, on shutdown of self-hosted kubelet, we could use PreStop hook to taint and drain the node. That ensures that updating self-hosted kubelet is safe and has a small impact on the cluster.

@invidian invidian added area/kubernetes Core Kubernetes stuff area/updates Items related to updates kind/enhancement New feature or request labels Feb 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/kubernetes Core Kubernetes stuff area/updates Items related to updates kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant