[root@master ~]# vim maxpod.yaml ... containers: - name: c1 image: registry:5000/myos:v2009 command: ["awk", "BEGIN{while(1){}}"] resources: limits: cpu: "800m" memory: "1000Mi" requests: cpu: "8m" memory: "8Mi" # 创建太多Pod,资源也会耗尽 [root@master ~]# for i in app{1..9};do sed "s,maxpod,${i}," maxpod.yaml ;done |kubectl -n myns apply -f - pod/app1 created pod/app2 created pod/app3 created pod/app4 created pod/app5 created pod/app6 created pod/app7 created pod/app8 created pod/app9 created # 在计算节点上查看资源占用情况 [root@node-0001 ~]# top
全局 quota 配额
最新推荐文章于 2024-06-06 17:10:53 发布