Comments (13)
@krsna1729 @ganeshmaharaj - adding to reset_stack.sh
is the ideal, because that is notionally when you want to do that cleanup... but, that is harder as you have to get all the ssh setup etc.
That's why I was suggesting adding it to the setup_system.sh
as a sort of 'pre-sanity clean check`, as the time this presents as a real problem is when re-installing a node, so that script would be run, and can clean up any old rook dirs before trying to re-install anew. Much easier to code up.
from cloud-native-setup.
@grahamwhaley
Is this already addressed with the reset script?
https://github.com/clearlinux/cloud-native-setup/blob/master/clr-k8s-examples/reset_stack.sh#L40
from cloud-native-setup.
from cloud-native-setup.
Yup added complexity. kubectl, awk, xargs, ssh should be enough
from cloud-native-setup.
I was thinking just last night, maybe we can add it to the setup_system.sh
script, as that is run on every node. And, although you don't technically need to run it a second time on a node to re-join a cluster, in my ansible scripts I do, and we could mandate that you must run the setup_system.sh
script before each join.
Or, yes, we could write a small clean_node.sh
or unjoin_node.sh
script that does the kubeadm reset -f
on the node followed by removal of the rook lib dir. (I have an ansible that does a host side drain
followed by those actions on the node(s)).
from cloud-native-setup.
from cloud-native-setup.
@grahamwhaley we can just run the reset_stack.sh right? Can we close this?
from cloud-native-setup.
@krsna1729 would be nice to add logic to clean /var/lib/rook
from all the nodes. Maybe find list of nodes when reset_stack.sh is called and do the ssh + delete at the end of the script after kube is reset?
from cloud-native-setup.
@grahamwhaley add it to setup_system.sh
with a TODO to remove it in future. From rook documentation -
Connect to each machine and delete /var/lib/rook, or the path specified by the dataDirHostPath.
In the future this step will not be necessary when we build on the K8s local storage feature.
from cloud-native-setup.
Im not set against but seems like it should be in reset_stack.sh
and called by something like Ansible for each node. IMO we should not implement multi-node management in bash just to remove /var/lib/rook
. It also leaves it decoupled for user to use the tool of their choice.
from cloud-native-setup.
Should we add this in Ansible, or make the changes in the script ?
from cloud-native-setup.
We have this https://github.com/clearlinux/cloud-native-setup/blob/master/clr-k8s-examples/reset_stack.sh#L43 in reset_stack script already.
from cloud-native-setup.
closing this, please feel free to open this if still active.
from cloud-native-setup.
Related Issues (20)
- kubeadm yaml needs to be updated to match the version of k8s HOT 1
- setup_system.sh fails when OS version is specified and packages have been removed
- kubeadm displaying warnings HOT 2
- cilium CNI does not work with containerd
- Trying to setup k8s with cri-o and kata-fc runtime on bare metal without Vagrant HOT 3
- consider shallow git clone for create `get()` function
- create: should not print out 'Not-documented' in the help
- rook: fails to come up on single node cluster HOT 4
- Systemd level proxy instead of per service HOT 2
- Problems with no_proxy settings HOT 1
- Add information about Rook to readme
- Rook needs updates
- Does Kubernetes actually work now with Clear Linux? HOT 5
- Missing steps in Vagrant install document HOT 3
- create_stack.sh no longer works
- System level proxy breaks containerd HOT 2
- "swapoff -a" not persistent across reboot HOT 3
- crio runnner is not properly installed with setup_system.sh for automated installation of Kubernetes HOT 1
- vfioveth - POD with DPDK HOT 1
- No bundle update? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-native-setup.