This message was deleted.
# rke2
a
This message was deleted.
f
I guess what I'm asking is: Should I always drain before restarting rke2-agent.service ?
a
agents are pretty safe, servers are another story
f
"pretty safe" ? are there any official guidelines on this? Like for example: A couple of versions back of containerd, containerd had the habbit of leaving behind orphan containers when it got restarted
a
agents don't have "state" or "etcd" so even if not draining it will boot up processes on another available node
given you have available resources
f
I know that. ๐Ÿ™‚ But still it might not always be completely safe to restart daemons.
e.g.
a
it might be, depending on the environment normally even if you're stopping it signals the master it is being unavailable
this is old ...
but otherwise it is probably wise to cordon/drain the node first
on production systems
f
"it might" .. That's exactly the thing ๐Ÿ™‚ So, my original question was really: Does RKE2 aim to make restart of the agent service graceful? Or is there an official recommendation to always drain?
But yeah, I'll always go with drain myself, unless some docs or something says it safe
a
I haven't found it, but depends on your expectations and experience
I would expect for rke2-server though
rke2 agent when it boots is like a fresh node to cluster but with cached resources
f
my experience with kubernetes in general since 2017 is not good with regards to just restarting components ๐Ÿ˜„ But I have less experience with RKE ... I will just go with draining I thing, at least for production.
a
I only have experience with rke2
and it seems the easiest option to me
๐Ÿ‘ 1
r
One thing I'd warn you about if you're doing reboots, is if you're also doing patches that RKE2 I installed on CentOS via the install script (allowing default of RPM install) put yum repos to auto update RKE2 when I did my yum upgrade, so I did run into some problems with that happening unexpectedly (note the RKE2 deployed from Rancher uses the TAR method and will NOT update with a yum update). I assume the SuSE & Ubuntu do the same for repos.
484 Views