kubernetes 学习 pod相关
1 pod的状态: Pending, Running, Succeeded, Failed, Unknown
2 pod重启策略: Always(自动重启,是默认的) 、 OnFailure(容器终止,且退出码不为0)、 Never
3 pod的扩容和缩容:
kubectl scale --replicas=2 deployment/XXXXX_deployment_name_XXXXXXXXXX
kubectl scale --replicas=3 -f foo.yaml