Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to connect K8S to Triton Datacenter Elastic Docker? #237

Open
a-prokopyev-resume opened this issue Sep 16, 2023 · 3 comments
Open

How to connect K8S to Triton Datacenter Elastic Docker? #237

a-prokopyev-resume opened this issue Sep 16, 2023 · 3 comments

Comments

@a-prokopyev-resume
Copy link

Hello,

Please let me know, what is the best method to connect remote Docker Engine to a K8S cluster?

For example, there is Triton Compose having Docker API to connect to it even from a general docker CLI.

Can K8S create, run and manage it containers in Triton private cloud?

May be via something like K8S -> CRI -> CRI-xxx like cri-dockerd -> Triton Docker API?

May be like described in another issue:
#106

I am using cri-dockerd as CRI for kubernetes. I have set --container-runtime=remote --container-runtime-endpoint=unix:///var/run/cri-dockerd.sock as flags for kubelet

But using IP network to the Triton cloud with a TCP port of its Docker API? Is it possible? Or may be there is a better method to connect them?

Thanks,
Alex

@afbjorklund
Copy link
Contributor

Probably have a look at https://github.com/TritonDataCenter/triton-kubernetes, seems that they already have a product ?

@a-prokopyev-resume
Copy link
Author

a-prokopyev-resume commented Jul 8, 2024

Probably have a look at https://github.com/TritonDataCenter/triton-kubernetes, seems that they already have a product ?

Hello again,

It seems triton-kubernetes is not alive and most likely is not exactly what I wanted to use.

My idea was just to connect to Triton Elastic Docker as a K8S runtime by using cri-dockerd if specifying a host:port for remote docker is supported by this K8S CRI plugin.

Benefits:

cri-dockerd is an alive and supported project
Triton Elastic Docker officially invites to manage it via general remote docker compatible socket/connection.

I think it would be very convenient.

Is it possible to specify remote docker host in cri-dockerd so that kubelet can be hosted on a different node than where actual docker runtime is running?

In such case:

  • K8S node kubelet could run inside a very light VM or even LXD container
  • Actual docker runtime could run on another SmartOS host (in Triton Elastic Docker private cloud) which is Illumos fork (even not a Linux OS)

Please read more details about docker API support in Triton:

https://apidocs.tritondatacenter.com/docker

https://docs.tritondatacenter.com/public-cloud/api/docker

and about Triton Elastic Docker:

https://docs.tritondatacenter.com/public-cloud/instances/docker/how

https://docs.tritondatacenter.com/public-cloud/instances/docker/how/start-multiple-containers

@afbjorklund
Copy link
Contributor

afbjorklund commented Jul 8, 2024

This is not something that is supported, but maybe https://virtual-kubelet.io/ could be something for you?

https://github.com/virtual-kubelet/cri/blob/master/README.md - think it only supports containerd, but...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants