KatharaFramework / Kathara

A lightweight container-based network emulation system.
https://www.kathara.org/
GNU General Public License v3.0
452 stars 63 forks source link

Kathara with kubernetes #237

Closed Trourest186 closed 1 year ago

Trourest186 commented 1 year ago

As I know, Kathara emulates virtual machines, network devices over containers. I'm researching to see if Kathara can be combined with K8s. For example:

Please suggest the feasibility of studying the above issues

Best regards! Giang

Skazza94 commented 1 year ago

Hi @Trourest186, surely you can create a Kubernetes cluster with Kathará.

Unfortunately, we do not have a Docker official image with Kubernetes installed. But it should be easy to create. If you manage to do so, you can open a pull request on the Docker Images repository.

If you need any help, feel free to reply to this issue.

Cheers, Mariano.

Trourest186 commented 1 year ago

Hi @Trourest186, surely you can create a Kubernetes cluster with Kathará.

Unfortunately, we do not have a Docker official image with Kubernetes installed. But it should be easy to create. If you manage to do so, you can open a pull request on the Docker Images repository.

If you need any help, feel free to reply to this issue.

Cheers, Mariano.

Thanks you so much!

Trourest186 commented 1 year ago

Hi @Skazza94, I have read more about Kathara, so far I have two problems that even testing still does not produce results. Would you suggest me:

Please take some time to support me. My knowledge is a bit limited. Thank you very much!

Best regards! Giang

Skazza94 commented 1 year ago

Hi @Trourest186, see inline.

Hi @Skazza94, I have read more about Kathara, so far I have two problems that even testing still does not produce results. Would you suggest me:

  • I have read the issue very carefully issuse #167, found it close to my purpose. Can you tell me if there is a way that when using the command "kathara lstart --privileged" the system will understand itself as "docker run -v /var/run/docker.sock:/var/run/docker.sock - v /var/run/docker.pid:/var/run/docker.pid ...". I want mount it to containers.

Currently there is no way to do that, but it is something that is planned to be added (something similar is in the inception branch).

  • Can be modified to allow Kathara to run with other runtimes such as (e.g. with sysbox-runc)?

Right now, Kathará is only compatible with the Docker and Kubernetes Python APIs. We have plans to support Podman, but in order to do so, the runtime must have a mature Python API implementation (e.g., the Podman API is still missing a TTY connection that we heavily use to connect to devices). As far as I can see, there is no Python API for sysbox-runc, so I think it is not easy to add support for it (aside from writing the API from scratch).

Hope this answers your questions!

Cheers, Mariano.

Trourest186 commented 1 year ago

Hi @Skazza94

Thank you for your detailed and careful answer, thanks to which I have the answer for my direction.

Best regards! Giang.