This message was deleted.
# rke2
a
This message was deleted.
w
c
where is that alert or error coming from? that’s not something rke2 would trigger.
Also, rke2 defrags the database every time it starts. Are you sure this is RKE2, not RKE?
Easiest way to defrag it is just to restart the rke2-server service
rancher is using containerd
rancher doesn’t use docker or containerd, rancher runs on kubernetes. I’m very confused about what your environment is.
w
Yes I am sure it's an rke2 cluster. The alert is coming from the rancher monitoring package defaults
Let me try and restart it
Provider: RKE2 Kubernetes Version: v1.25.9 +rke2r1
I mean I'm not installing k8s or containerd. I give rancher an Ubuntu cloud image directly from Ubuntu. "rancher is using containerd in the downstream rke2 k8sv1.25.9 cluster" is kinda what I mean
c
ah ok yeah. Rancher will provision RKE2 and K3s which both use containerd. It’ll also provision RKE which uses Docker.
w
I'm k8s tho
I don't have an rke2-server either in my rancher local cluster nor the deployed cluster rke2
c
But for RKE2, it pretty much self-manages etcd, including defragging it on startup.
Ah is this alert firing on the local cluster?
w
Hmm I wonder if it resets the etcd status alarm
No on a deployed cluster, sorry
c
the rke2-server service would be on the downstream node. You’ll have to log into it locally to restart it. It’s a systemd unit, not a cluster service.
w
The local is a K3S I manually installed , the other is a cluster rancher deployed
Ahh thanks
Let me try that
That worked!
a
On the controller host in an emergency situation, I've been able to interact with ``sudo etcdctl --endpoints=127.0.0.1:2379 --cacert=/var/lib/rancher/rke2/server/tls/etcd/server-ca.crt --cert=/var/lib/rancher/rke2/server/tls/etcd/server-client.crt --key=/var/lib/rancher/rke2/server/tls/etcd/server-client.key endpoint status -w table --cluster=true``
defrag and compress work the same, and I've been able to fix up both full and fragged etcd instances this way
w
Thanks David
c
Rke2 automatically defrags and clears alarms on startup, so just restart is definitely the easiest way to handle that.
726 Views