'Decoupling K3S and containerd

I am trying to run k3s on a pre-installed cointainerd on the node. My goal in general is that when k3s is stopped, containerd will keep running.

It is also preferable that k3s will use the same containerd runtime as mentioned above.



Solution 1:[1]

There is a flag --container-runtime-endpoint which can be passed with the socket of your pre-installed containerd while initializing the k3s server/agent.

How to: agent-runtime-flags

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mayank Upasak