k8s 扩容与缩容步骤分析
点击已经部署的应用,扩容到2,将经历以下步骤:拉取镜像,创建容器,启动容器,扩容成功1、MountVolume.SetUp succeeded for volume \"v2\"2、MountVolume.SetUp succeeded for volume \"default-token-qwg24\"3、pulling image \".io/li...
点击已经部署的应用,扩容到2,将经历以下步骤:拉取镜像,创建容器,启动容器,扩容成功
1、MountVolume.SetUp succeeded for volume \"v2\"
2、MountVolume.SetUp succeeded for volume \"default-token-qwg24\"
3、pulling image \".io/library/monitor-web-ms:1.3.0\"
4、Successfully pulled image \"pi6000.io/library/monitor-web-ms:1.3.0\
5、Created container
6、Started container
7、SuccessfulCreate
8、Scaled up replica set monitor-web-ms-deployment-9889f5f64 to 2
缩容事件过程:
1、Killing container with id docker://monitor-web-ms:Need to kill Pod 杀掉容器
2、Deleted pod: pi6000-monitor-web-ms-deployment-9889f5f64-6tbgp 删除容器
3、Scaled down replica set monitor-web-ms-deployment-9889f5f64 to 1 缩容到1
通过yaml 部署应用分析,使用命令kubectl create -f deployment.yaml
1、MountVolume.SetUp succeeded for volume \"default-token-qwg24\
2、"MountVolume.SetUp succeeded for volume \"v2\"
3、"Created pod: pi6000-monitor-web-deployment-5fb9dcc44f-drpgv",
4、Started container
5、Created container
6、Successfully pulled image \"pi6000.io/library/pi6000-monitor-web-ms:1.3.0-SNAPSHOT\"
7、pulling image \"pi6000.io/library/pi6000-monitor-web-ms:1.3.0-SNAPSHOT\"
8、MountVolume.SetUp succeeded for volume \"default-token-qwg24\" ",
9、"MountVolume.SetUp succeeded for volume \"v2\" ",
更多推荐
所有评论(0)