简体   繁体   English

如何控制 kubernetes 上 Job 内运行的容器数量

[英]How to control numbers of container running inside Job on kubernetes

I've one Job that has 500 containers, each container run a different file.我有一个有 500 个容器的作业,每个容器运行一个不同的文件。 But I'm try to execute 10 containers by time, but the parallelism is for the pod and not the containers.但我尝试按时间执行 10 个容器,但并行性是针对 pod 而不是容器。

Is there any way to control the parallelism in containers levels?有什么方法可以控制容器级别的并行性?

Pods are the smallest deployable units of computing that you can create and manage in Kubernetes. Pod 是您可以在 Kubernetes 中创建和管理的最小可部署计算单元。

So, the answer is no.所以,答案是否定的。

https://kubernetes.io/docs/concepts/workloads/pods/ https://kubernetes.io/docs/concepts/workloads/pods/

暂无
暂无

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

相关问题 通过昂首阔步运行容器部署执行后如何更新作业的kubernetes作业状态? - How to update kubernetes job status of a job after being executed through swagger running a container deployment? 如何在kubernetes内运行的jenkins管道中运行sidecar容器 - How to run sidecar container in jenkins pipeline running inside kubernetes 如何检查在 kubernetes pod 的 docker 容器内运行的工人数量? - How to check the number of workers running inside a docker container of kubernetes pod? Kubernetes 命令未在 Jenkins 容器内运行 - Kubernetes commands are not running inside the Jenkins container cron作业没有在ubuntu上的docker容器内运行 - cron job not running inside docker container on ubuntu 在kubernetes内运行的docker容器内没有互联网连接,编织为网络 - No internet connectivity inside docker container running inside kubernetes with weave as networking 如何登录运行在特定Kubernetes容器内的Docker容器并运行test.sh文件? - How do I login into a Docker container running inside the specific Kubernetes pod and run an test.sh file? 如何让容器在 Kubernetes 上运行? - How can I keep a container running on Kubernetes? 如何在具有运行中的spring-boot应用程序的kubernetes容器/容器中运行cron? - How do I run a cron inside a kubernetes pod/container which has a running spring-boot application? 如何将 docker 容器添加到正在运行的 kube.netes pod? - How to add a docker container to a running kubernetes pod?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM