gpt4 book ai didi

kubernetes - 由于 CPU 不足,Pod 处于挂起状态

转载 作者:行者123 更新时间:2023-12-04 00:39:12 29 4
gpt4 key购买 nike

在我的 GCE Kubernetes 集群上,我无法再创建 pod。

Warning FailedScheduling    pod (www.caveconditions.com-f1be467e31c7b00bc983fbe5efdbb8eb-438ef) failed to fit in any node
fit failure on node (gke-prod-cluster-default-pool-b39c7f0c-c0ug): Insufficient CPU

查看该节点的分配统计信息
Non-terminated Pods:        (8 in total)
Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits
--------- ---- ------------ ---------- --------------- -------------
default dev.caveconditions.com-n80z8 100m (10%) 0 (0%) 0 (0%) 0 (0%)
default lamp-cnmrc 100m (10%) 0 (0%) 0 (0%) 0 (0%)
default mongo-2-h59ly 200m (20%) 0 (0%) 0 (0%) 0 (0%)
default www.caveconditions.com-tl7pa 100m (10%) 0 (0%) 0 (0%) 0 (0%)
kube-system fluentd-cloud-logging-gke-prod-cluster-default-pool-b39c7f0c-c0ug 100m (10%) 0 (0%) 200Mi (5%) 200Mi (5%)
kube-system kube-dns-v17-qp5la 110m (11%) 110m (11%) 120Mi (3%) 220Mi (5%)
kube-system kube-proxy-gke-prod-cluster-default-pool-b39c7f0c-c0ug 100m (10%) 0 (0%) 0 (0%) 0 (0%)
kube-system kubernetes-dashboard-v1.1.0-orphh 100m (10%) 100m (10%) 50Mi (1%) 50Mi (1%)
Allocated resources:
(Total limits may be over 100%, i.e., overcommitted. More info: http://releases.k8s.io/HEAD/docs/user-guide/compute-resources.md)
CPU Requests CPU Limits Memory Requests Memory Limits
------------ ---------- --------------- -------------
910m (91%) 210m (21%) 370Mi (9%) 470Mi (12%)

当然,我已经分配了 91%,不能再分配 10%。但是不能过度提交资源吗?

服务器的平均使用率约为 10%

enter image description here

如果我不能使用更多资源,那将是一种耻辱。

最佳答案

是的,目前不支持过量使用。正在计划改进 http://kubernetes.io/docs/user-guide/compute-resources .
github上的相关问题:https://github.com/kubernetes/kubernetes/issues/168

ps:理论上你可以定义自定义节点容量,但我不确定。

关于kubernetes - 由于 CPU 不足,Pod 处于挂起状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38869673/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com