# 运行Pod kubectl create -f pod-resources.yaml # 查看发现pod运行正常 kubectl get pod pod-resources -n dev
# 接下来,停止Pod kubectl delete -f pod-resources.yaml
# 编辑pod,修改resources.requests.memory的值为10Gi vim pod-resources.yaml
# 再次启动pod kubectl create -f pod-resources.yaml
# 查看Pod状态,发现Pod启动失败 kubectl get pod pod-resources -n dev -o wide
NAME READY STATUS RESTARTS AGE pod-resources 0/1 Pending 0 20s
# 查看pod详情会发现,如下提示 kubectl describe pod pod-resources -n dev ...... Warning FailedScheduling 35s default-scheduler 0/3 nodes are available: 1 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 2 Insufficient memory.(内存不足)