This message was deleted.
# general
a
This message was deleted.
p
Ok, I've just realised that there's a config drop-in here. I've no idea how this was created:
Copy code
/etc/rancher/rke2/config.yaml.d/50-rancher.yaml
And this contains:
Copy code
"container-runtime-endpoint=unix:///run/k3s/containerd/containerd.sock"
So that has to be it. The question is, how did the drop-in come to be? 🙂
When looking at the yaml config of the cluster, I see this:
Copy code
machineSelectorConfig:
      - config:
          kubelet-arg:
            - image-gc-low-threshold=70
            - image-gc-high-threshold=75
            - registry-qps=10
            - registry-burst=20
            - >-
              container-runtime-endpoint=unix:///run/k3s/containerd/containerd.sock
          protect-kernel-defaults: false
So maybe this part is overriding the rke2 config.yaml on the node, which maybe was editing manually, I'm not sure.
So my question would then be: what is the right way to use a different container runtime on a certain node?
(on a rke2 prod cluster I see that the container-runtime-endpoint is not set at all. So I guess this is optional. I wonder how it ended up there)
Simply deleting
Copy code
- >-
              container-runtime-endpoint=unix:///run/k3s/containerd/containerd.sock
from the cluster configuration worked and the worker node works again. I wonder how that line ended up there 🙂
c
someone on your team put it there. that’s not something rancher would add to your cluster yaml on its own
p
Thanks for confirming it!
@creamy-pencil-82913 just another question related to this: why is the containerd socket under /run/k3s/containerd? So why 'k3s'? Instead of, I don't know, rke2 or something like that, given that this is an rke2 cluster.
c
RKE2 is mostly K3s, just with some bits replaced or added on
Early on we replaced most of the occurrences of “k3s” with a variable that is set to “rke2" or “k3s” at build time, but we missed that one, and now it’s kinda late to change it
p
I see. I thought it was something like that 🙂 Thanks!