Docker Kubernetes 容器扩容与缩容

环境:

  • 系统:Centos 7.4 x64
  • Docker版本:18.09.0
  • Kubernetes版本:v1.8
  • 管理节点:192.168.1.79
  • 工作节点:192.168.1.78
  • 工作节点:192.168.1.77

创建环境:

  • 1、Deployment名称:nginx-deployment
  • 2、pods副本数为:3 
  • 3、image镜像:nginx1.9

管理节点:扩容或缩容deploymnet的pod副本数。

kubectl scale deployment nginx-deployment --replicas=10
kubectl scale 资源类型 资源名称 --replicas=扩容副本数
命令注解

相关文章:

  • 2021-12-24
  • 2021-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-08-16
  • 2021-06-21
  • 2021-11-16
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2019-03-29
  • 2021-05-07
  • 2021-12-13
  • 2021-07-24
  • 2022-12-23
相关资源
相似解决方案