Kubernetes POD是否具有与之关联的名称空间和cgroup? [英] Does Kubernetes POD have namespace and cgroup associated with it?

查看:191
本文介绍了Kubernetes POD是否具有与之关联的名称空间和cgroup?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Docker容器具有与之关联的cgroup和名称空间,无论它们是在pod或vm还是主机中运行.
类似地,Kubernetes Pod是否具有与之关联的名称空间和cgroup,或者只是Pod中的容器具有这些(cgroup& namespace)关联.如果可以,我如何从主机中找到此信息?

Docker Containers have cgroups and namespaces associated with them, whether they are running in a pod or vm or host machine.
Similarly, does a Kubernetes Pod's have namespaces and cgroups associated with them, or it's just the containers within the pod have these(cgroup & namespace) associations. If they do, how can I find this info from the host?

推荐答案

group of whales is called a pod. Consider a pod of two humpback whales. One whale is grey in color and other is blue.

豆荚是什么颜色?这个问题没有多大意义,因为颜色是每只鲸鱼的财产.

What is the color of the pod? The question doesn't make much sense as color is the property of each individual whale.

豆荚的种类是什么?好吧,您可以说这是一个驼峰包吊舱,因为吊舱中的所有鲸鱼都是座头鲸,但物种又与吊舱无关.属于该物种的是个体鲸鱼.

What is the species of the pod? Well you can say it is a humbpack pod as all the whales in the pod are humpback whales but again species has nothing to do with the pod. It is the individual whale that belongs to that species.

类似地,一组容器是Kubernetes中的一个pod.诸如cgroups和命名空间之类的属性适用于容器.有时在Pod级别上谈论一些属性很方便,例如网络名称空间或IPC名称空间,因为Pod中的所有容器通常共享相同的网络和IPC名称空间.但从本质上讲,它们是容器属性.

Similarly group of containers is a pod in Kubernetes. Properties like cgroups and namespaces are applicable for containers. Sometimes it is convenient to talk about some properties at pod level like network namespace or IPC namespace because all the containers in the pod usually share the same network and IPC namespaces. But inherently they are container properties.

这篇关于Kubernetes POD是否具有与之关联的名称空间和cgroup?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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