[英]How can I increase the number of pods in kubernetes
I want to increase the number of pods in kubernetes for which I'm trying with the following commands but which gives an error Error from server (NotFound): deployments.apps not found我想增加 kubernetes 中的 pod 数量,我正在尝试使用以下命令,但它给出了错误来自服务器的错误 (NotFound): deployments.apps not found
kubectl scale deployment <pod> --replicas=4
You can increase/decrease the number of Pods in a deployment using:您可以使用以下方法增加/减少部署中的 Pod 数量:
# To kill all pods in a deployment
kubectl scale deploy <deployment-name> --replicas=0
# To set the number of pods
kubectl scale deploy <deployment-name> --replicas=3
You to pass the deployment name which you want to scale您传递要扩展的部署名称
kubectl scale deployment <deployment name> --replicas=4
POD name wont work. POD名称不起作用。
Read more here/Example 在此处阅读更多/示例
kubectl scale deployment/nginx-deployment --replicas=10
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.