Kubeadm: Kubeadm reset should cleanup control-plane nodes properly

Created on 8 Dec 2018  路  8Comments  路  Source: kubernetes/kubeadm

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

help wanted kinbug lifecyclactive prioritimportant-soon

Most helpful comment

@ereslibre there are multiple issue related to reset

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

All 8 comments

I'll take this one.

Thanks @Klaven
/lifecycle active

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.

/assign @Klaven

@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.

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

@ereslibre there are multiple issue related to reset

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

/assign

Was this page helpful?
0 / 5 - 0 ratings