2m6s web-2 1/1 Running 0 106s web-3 1/1 Running 0 2m47s web 6m7s web-3 0/1 Pending 0 0s web-3 0/1 Pending 0 0s web -4 0/1 Terminating 0 5m48s web-4 0/1 Terminating 0 5m48s web-3 0/ 1 ContainerCreating 0 2s web-3 1/1 Running 0 2s web-4 0/1 Pending 0 0s web-4 0/1 Pending 0 0s web-4 0/1
-4 0/1 Pending 0 0s web-4 0/1 Pending 0 0s web-4 0/1 Pending 0 1s web-4 0/1 ContainerCreating 0 1s web-4 1/1 Running 0 9s [root@k8s-master1 volume]# kubectl 0 13m web-3 1/1 Running 0 3m16s web -4 0/1 Terminating 0 2m55s web-4 0/1 Terminating 0 2m57s web-4 0/1 Terminating 0 2m57s web-3 1/1 Terminating 0 3m18s web-3
-4 0/1 Pending 0 0s web-4 0/1 Pending 0 0s web-4 0/1 ContainerCreating 0 0s web-4 1/1 Running 0 1s 缩容到2个副本 [root@k8s-master01 1/1 Terminating 0 14m web-4 0/1 Terminating 0 14m web-4 0/1 Terminating 0 14m web-4
0 0s web-3 0/1 ContainerCreating 0 0s web-3 1/1 Running 0 18s web -4 0/1 Pending 0 0s web-4 0/1 Pending 0 0s web-4 0/1 ContainerCreating 0 0s web-4 1/1 Running 0 19s StatefulSet 控制器扩展了副本的数量。 -4 0/1 ContainerCreating 0 18s NAME READY STATUS RESTARTS AGE web-4 1/1 Running 0 19s web-4 1/1 Terminating 0 24s web-4 1/1 Terminating 0 24s web-3 1/1 Terminating
23m web-2 1/1 Running 0 18m web-3 1/1 Running 0 10m web
app=nginx,controller-revision-hash=web-79545bdb6d,statefulset.kubernetes.io/pod-name=web-3 # pod/web k8s-node-4 app=nginx,controller-revision-hash=web-79545bdb6d,statefulset.kubernetes.io/pod-name=web data$ curl http://10.110.119.27/host.html && curl http://10.10.107.202:30001/host.html # Hostname: web -4 ,Image Version: 3.0, Nginx Version: 1.19.4 # Hostname: web-4 ,Image Version: 3.0, Nginx Version: /default-webroot-web-4-pvc-c0c41528-85c0-4881-b05b-8e236bc77a47/host.html:Hostname: web-4 ,Image Version
title : 'web-2', description : 'da-2'}, { title : 'web-3', description : 'da-3'}, { title : 'web