gpt4 book ai didi

kubernetes - 如何将 Kubernetes DiskPressure 状态从 true 更改为 false?

转载 作者:行者123 更新时间:2023-12-01 23:52:49 26 4
gpt4 key购买 nike

创建简单的 nginx 部署后,我的 pod 状态显示为“PENDING”。当我运行 kubectl get pods 命令时,我得到以下信息:

NAME                                READY   STATUS    RESTARTS   AGE
nginx-deployment-6b474476c4-dq26w 0/1 Pending 0 50m
nginx-deployment-6b474476c4-wjblx 0/1 Pending 0 50m

如果我检查我的节点健康状况,我得到:

Taints:             node.kubernetes.io/disk-pressure:NoSchedule
Unschedulable: false
Lease:
HolderIdentity: kubernetes-master
AcquireTime: <unset>
RenewTime: Wed, 05 Aug 2020 12:43:57 +0530
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
NetworkUnavailable False Wed, 05 Aug 2020 09:12:31 +0530 Wed, 05 Aug 2020 09:12:31 +0530 CalicoIsUp Calico is running on this node
MemoryPressure False Wed, 05 Aug 2020 12:43:36 +0530 Tue, 04 Aug 2020 23:01:43 +0530 KubeletHasSufficientMemory kubelet has sufficient memory available
DiskPressure True Wed, 05 Aug 2020 12:43:36 +0530 Tue, 04 Aug 2020 23:02:06 +0530 KubeletHasDiskPressure kubelet has disk pressure
PIDPressure False Wed, 05 Aug 2020 12:43:36 +0530 Tue, 04 Aug 2020 23:01:43 +0530 KubeletHasSufficientPID kubelet has sufficient PID available
Ready True Wed, 05 Aug 2020 12:43:36 +0530 Tue, 04 Aug 2020 23:02:06 +0530 KubeletReady kubelet is posting ready status. AppArmor enabled

最佳答案

您可以使用以下命令删除磁盘压力的污点,但理想情况下您需要调查 kubelet 报告磁盘压力的原因。节点可能磁盘空间不足。

kubectl taint nodes <nodename> node.kubernetes.io/disk-pressure-

这将使您脱离 nginx pod 的挂起状态。

关于kubernetes - 如何将 Kubernetes DiskPressure 状态从 true 更改为 false?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63260395/

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