bernetes是否可以在没有LXD守护程序的情况下管理LXC容

bernetes是否可以在没有LXD守护程序的情况下管理LXC容

本文介绍了Kubernetes是否可以在没有LXD守护程序的情况下管理LXC容器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Oracle Linux(主机)上运行多个LXC容器,并在那些容器内运行EBS应用程序.
现在我每5个主机上就有10个以上的容器.
我正在寻找用于管理这些容器的解决方案.研究告诉我,Kubernetes是一种用于管理容器并执行其他活动(例如自动缩放..etc.
)的解决方案.但是Kubernetes与LXD一起用于lxc容器.
有什么方法可以直接使用Kubernetes管理lxc容器吗?
任何帮助将不胜感激!

I am running several LXC containers on Oracle Linux (host) and running EBS application inside those containers.
Now I have more than 10 containers on every 5 hosts.
I am looking for a solution for managing these containers. The research told me that Kubernetes is a solution for managing containers and perform several other activities with it like autoscaling ..etc.
But Kubernetes works with LXD for lxc containers.
Is there any way through which I can manage lxc container directly with Kubernetes?
Any help will be really appreciated !!

谢谢!!

推荐答案

我正在使用经典的LXC软件包,该软件包即将在oracle Linux Base存储库中提供.

I am using classic LXC package which is coming oracle Linux Base repo.

嗯,官方 LXE项目说明对此没有任何疑问.它明确指出必须安装 LXD :

Well, official LXE project description doesn't leave any doubts about it. It clearly states that LXD must be installed:

所以这意味着您不能使用经典的LXC.

So it means you cannot use classic LXC.

您可能知道 LXC LXD 是两种不同的产品,尽管第二种产品是基于第一种产品的,您可以阅读此处,但最重要的区别是 LXD 公开了 REST API :

As you may know LXC and LXD are two different products although the second one is built on top of the first one as you can read here but the most important difference is that LXD exposes a REST API:

客户端,例如LXD本身提供的命令行工具通过该REST API进行所有操作.这意味着你是否与您的本地主机或远程服务器通信,一切正常同样的方式.

Clients, such as the command line tool provided with LXD itself thendo everything through that REST API. It means that whether you'retalking to your local host or a remote server, everything works thesame way.

这实际上是其关键功能,这使得它可以使用 LXE 等其他工具进行管理.

This is actually its key feature which makes possible it's management with additional tools like LXE.

因此,再次:您的问题的答案是:不,您不能使用经典的LXC.它必须是LXD.据我所知,没有其他方法可以直接通过 kubernetes 管理 LXC 容器.

So again: The answer to your question is: No, you can't use classic LXC. It must be LXD. And as far as I know there is no other way available to manage LXC containers directly with kubernetes.

这篇关于Kubernetes是否可以在没有LXD守护程序的情况下管理LXC容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 17:16