限制namespace最多能运行的pod数 namespace默认没有限制pod数,通过如下脚本限制pod数: apiVersion: v1 kind: ResourceQuota metadata: name: pod-demo namespace: "openeuler" spec: hard: pods: "10" 限制最多运行10个pod,已经运行4个pod,如下显示 # kubectl get resourcequotas -n openeuler NAME AGE REQUEST LIMIT pod-demo 10m pods: 4/10