Giter Club home page Giter Club logo

Comments (6)

krsna1729 avatar krsna1729 commented on July 4, 2024

@mythi not sure i follow. Seems like kubeadm reset correctly removes stuff

$ ./reset_stack.sh
[preflight] running pre-flight checks
[reset] Reading configuration from the cluster...
[reset] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -oyaml'
[reset] stopping the kubelet service
[reset] unmounting mounted directories in "/var/lib/kubelet"
[reset] deleting contents of stateful directories: [/var/lib/etcd /var/lib/kubelet /etc/cni/net.d /var/lib/dockershim /var/run/kubernetes]
[reset] deleting contents of config directories: [/etc/kubernetes/manifests /etc/kubernetes/pki]
[reset] deleting files: [/etc/kubernetes/admin.conf /etc/kubernetes/kubelet.conf /etc/kubernetes/bootstrap-kubelet.conf /etc/kubernetes/controller-manager.conf /etc/kubernetes/scheduler.conf]

The reset process does not reset or clean up iptables rules or IPVS tables.
If you wish to reset iptables, you must do so manually.
For example:
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X

If your cluster was setup to utilize IPVS, run ipvsadm --clear (or similar)
to reset your system's IPVS tables.

... repeated stuff
 $ sudo ls -al /var/lib/kubelet/
total 8
drwx------  2 root root 4096 Feb  4 22:31 .
drwxr-xr-x 18 root root 4096 Feb  4 18:47 ..

Is having the directory a problem?

from cloud-native-setup.

mythi avatar mythi commented on July 4, 2024

Is having the directory a problem?

It does not exist before kubeadm init so if we reset everything to the original state, removing the dir is justified. I noticed minor glitch in the kubelet swupd update checker script when the dir did not exist. Other similar cases may appear. Therefore, restoring to totally clean state is preferred.

from cloud-native-setup.

krsna1729 avatar krsna1729 commented on July 4, 2024

ok, send a PR

from cloud-native-setup.

knangia avatar knangia commented on July 4, 2024

@krsna1729 @mythi are we still working on this issue? Did we get a PR for this one?

from cloud-native-setup.

mythi avatar mythi commented on July 4, 2024

@knangia I never sent the PR. It's pretty minor so I'm OK closing

from cloud-native-setup.

knangia avatar knangia commented on July 4, 2024

ok, thank you! Will close this one.

from cloud-native-setup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.