This message was deleted.
# k3s
a
This message was deleted.
c
no. pods are groups of processes. When the processes exit as part of the reboot, the pods go away and must be recreated. This is why it is usually recommended to use DaemonSet/Deployment/ReplicaSet to manage creation of pods, instead of just creating pods directly.
this is just how Kubernetes works
c
The pods are created through deployments. What I observe is that k3s will recreate itself after the host is rebooted, which means every reboot will start a new cluster instead of picking up previous state
Is this something expected for k3s or there are some configs to change the behavior
c
that is not correct
are you running this on a host where /var/lib/rancher is tmpfs, immutable, or otherwise discarded on reboot?
the only way it would be recreating a new cluster every time you reboot is if you have something that is wiping the paths on disk where cluster data is stored.
c
where are the paths for the data store? I am using a azure rhel vm instance, so I don't think it has those constraints
c
The path I just said up above.
👍 1