简体   繁体   English

是否可以在一个部署中创建具有不同资源限制的Pod?

[英]It's possible to create pods with different resources limit in one deployment?

it's possible to create one deployment with four pods, each pod is identical to each other except the memory limit of their containers. 可以创建一个包含四个Pod的部署,每个Pod除了容器的内存限制外彼此相同。

If it can be done, how is the yaml file look like. 如果可以的话,yaml文件的外观如何。

This is not possible with a single deployment. 单个部署是不可能的。

You can reach a similar effect by creating multiple deployments. 通过创建多个部署,您可以达到类似的效果。

A deployment specifies the template of a single Pod. 部署指定单个Pod的模板。 You cannot define multiple Pods in a single deployment 您不能在单个部署中定义多个Pod

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Openshift:是否可以让同一部署的不同 Pod 使用不同的资源? - Openshift: Is it possible to make different pods of the same deployment to use different resources? 是否可以将不同的卷挂载到同一部署的 pod 上 - Is it possible to mount different volumes to pods of the same deployment Kube.netes 部署,其中一个 pod 获得不同的环境 - Kubernetes deployment where one of the pods gets different env 是否可以将不同的 pods/service 映射到 Kubernetes 中不同节点的接口? - Is it possible to map different pods/services to different node's interfaces in Kubernetes? 部署的Pod中的升级映像 - Upgrade image in a Deployment's pods 如何删除所有资源,包括特定部署的服务、部署、pod、副本集,不包括 kubernetes 中的特定资源 - How to delete all the resources Including service, deployment , pods, replica-set for particular deployment excluding specific one in kubernetes k8s pod 的资源限制,在启动时消耗大量资源,但在运行时消耗最少 - Resource limit for k8s pods that consumes lots of resources at starting up, but minimal when running 使用 Kind: deployment 限制 kubernetes 中 Pod 的首次部署 - Limit first time deployment of pods in kubernetes using Kind: deployment 是否可以将运行中的Pod从ReplicationController移至Deployment? - Is it possible to move the running pods from ReplicationController to a Deployment? 为跨不同节点池的部署分发 pod - Distribute pods for a deployment across different node pools
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM