1.创建一个web:
kubectl create deployment web --image=registry.cn-beijing.aliyuncs.com/qingfeng666/hello-app:1.0
[root@master Chapter6]# kubectl get pod
NAME READY STATUS RESTARTS AGE
busybox-1 1/1 Running 6 5d22h
busybox-2 1/1 Running 6 5d22h
command-demo 0/1 Completed 0 14d
dependent-envars-demo 0/1 ImagePullBackOff 401 13d
liveness-http 0/1 ImagePullBackOff 1058 14d
my-nginx-6d97ddfff5-5klfk 1/1 Running 2 6d8h
my-nginx-6d97ddfff5-mx8h8 1/1 Running 2 6d8h
nginx-5558c8c8b4-9cgw2 1/1 Running 0 5h28m
web-6db77f5fdb-dl7rz 0/1 ContainerCreating 0 1s
[root@master Chapter6]# kc ge