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

Kubeadm reset should cleanup control-plane nodes properly #1312

Closed
fabriziopandini opened this issue Dec 8, 2018 · 8 comments · Fixed by kubernetes/kubernetes#75082
Closed
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone

Comments

@fabriziopandini
Copy link
Member

Kubeadm reset should take care of removing control-plane nodes from the ClusterStatus status ConfigMap

@fabriziopandini fabriziopandini added kind/bug Categorizes issue or PR as related to a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Dec 8, 2018
@Klaven
Copy link

Klaven commented Dec 10, 2018

I'll take this one.

@yagonobre
Copy link
Member

Thanks @Klaven
/lifecycle active

@k8s-ci-robot k8s-ci-robot added the lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. label Dec 10, 2018
@fabriziopandini
Copy link
Member Author

additional info as per @Klaven request:

kubeadm-config ConfigMap is in kube-system namespace

All the machinery for reading/writing the config map already exists in cmd/kubeadm/app/phases/uploadconfig/uploadconfig.go and cmd/kubeadm/app/util/config/cluster.go

The ConfigMap has two key values: one for the ClusterConfigurationobject, one for the ClusterStatus

Whenever a control-plane node joins, a new entry is created in ClusterStatus; this PR should implement removal of entry from the Clust erStatuswhenever a kubeadm reset operation is executed on a control-plane node.

@timothysc timothysc added this to the v1.14 milestone Jan 4, 2019
@timothysc
Copy link
Member

/assign @Klaven

@k8s-ci-robot
Copy link
Contributor

@timothysc: GitHub didn't allow me to assign the following users: Klaven.

Note that only kubernetes members and repo collaborators can be assigned.
For more information please see the contributor guide

In response to this:

/assign @Klaven

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ereslibre
Copy link
Contributor

ereslibre commented Jan 14, 2019

Is it also desired to attempt the node deletion aside from modifying the kubeadm-config configmap?

@fabriziopandini
Copy link
Member Author

fabriziopandini commented Jan 14, 2019

@ereslibre there are multiple issue related to reset

For sake of simplicity IMO we should treat all of them as separated issues/PR

@neolit123
Copy link
Member

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/active Indicates that an issue or PR is actively being worked on by a contributor. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
7 participants