So I have 5 docker containers running (preconfigured) with ssh. “nodes” are in the same Network subnet and can ping each other. What would be the algorithm to setup kubernates or kind on top of such setup?
There are many ways to install Kubernetes. Too many to cover here.
The Kubernetes Docs list some. You might also check out Kubernetes the Hard Way
RKE is also a pretty easy way to do it if you already have Docker on the nodes.
Kubernetes has a project called kind
(Kubernetes IN Docker) for testing or building kubernetes in Docker containers. There's a quick start guide
Making a container react like a regular node/vm/host to kubernetes is a complex task, docker in docker is only the start of it. kind supplies the container half of the equation for you and does multi node setups