This message was deleted.
# k3s
a
This message was deleted.
d
It would be great if someone could help with this
@creamy-pencil-82913 If you could help shed some light on this it would be great!
c
no, just symlink as discussed in that comment thread
d
Cool, that helps. As I was experimenting the last couple of days, I found a couple of issues: • When the server/node is restarted, the containerd state directory(/run/k3s) gets deleted. I guess this happens because when containerd stops, it perhaps deletes /run/k3s? • The k3s uninstall script has hard-coded paths for both /run/k3s and /var/lib/rancher. Due to this, there are two issues: • The unmount doesn't happen as the /proc/self/mounts seems to have the new symlinked path and not the original /run/k3s • Data in both /run/k3s and /var/lib/rancher is not deleted, instead the symlink gets deleted which is expected as we've created a symlink for these
Any suggestions for the above issues would help..
For the last 2 issues, we are thinking of handling this separately for now.
If you could add your suggestions for the 1st and even for the others, that would be great.
c
When the server/node is restarted, the containerd state directory(/run/k3s) gets deleted.
/run is a tmpfs mount on most distros; things created there are ephemeral and don’t persist across reboots. I’m curious why you’re trying to move things off it at all.
and yes, the killall/uninstall script is not aware of custom paths. If you customize the paths, you’ll have to manage cleanup yourself.
d
We've had customers who didn't have sufficient space on /var/lib and didn't want to increase it either. I assumed the same could be the case for /run as well. But as I now realise, that it uses tmpfs I guess this shldnt be a problem. Btw, is it a requirement for /run to be a tmpfs on most distros or is that something that can be configured?
If we ignore /run, I guess we can just go with the --data-dir option and wouldn't need to do any symlinks at all if I'm right?
And also the kubelet dir change. Apart from this, I see there is /var/lib/cni. Is there any option to change the path of this? @creamy-pencil-82913
@creamy-pencil-82913 If you could help with this..
@creamy-pencil-82913 if you could pls help to clarify this..
105 Views