Kubernetes是否可以在没有LXD守护程序的情况下管理LXC容器? [英] Can Kubernetes manage LXC containers without LXD daemon?

查看:142
本文介绍了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 !!

谢谢!!

推荐答案

您使用LXD还是经典LXC?

Do you use LXD or classic LXC ?

我正在使用经典的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:

要求

您需要安装LXD> = 3.3,哪些软件包是正式的 仅可用通过 快点. 还支持按源构建的LXD.

Requirements

You need to have LXD >= 3.3 installed, which packages are officially only available via snap. A LXD built by source is also supported.

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

So it means you cannot use classic LXC.

您可能知道 LXC

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公开REST API. 本地unix套接字以及通过网络(如果已启用).

The core of LXD is a privileged daemon which exposes a REST API over a local unix socket as well as over the network (if enabled).

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

Clients, such as the command line tool provided with LXD itself then do everything through that REST API. It means that whether you're talking to your local host or a remote server, everything works the same 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容器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆