我已在master上重新启动kubelet,此后k8s master进入“未就绪”状态。 请在describe中找到以下事件。
Conditions:
Type Status LastHeartbeatTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
NetworkUnavailable False Fri, 23 Oct 2020 12:51:36 +0530 Fri, 23 Oct 2020 12:51:36 +0530 FlannelIsUp Flannel is running on this node
MemoryPressure Unknown Wed, 04 Nov 2020 11:30:18 +0530 Wed, 04 Nov 2020 11:34:50 +0530 NodeStatusUnknown Kubelet stopped posting node status.
DiskPressure Unknown Wed, 04 Nov 2020 11:30:18 +0530 Wed, 04 Nov 2020 11:34:50 +0530 NodeStatusUnknown Kubelet stopped posting node status.
PIDPressure Unknown Wed, 04 Nov 2020 11:30:18 +0530 Wed, 04 Nov 2020 11:34:50 +0530 NodeStatusUnknown Kubelet stopped posting node status.
Ready Unknown Wed, 04 Nov 2020 11:30:18 +0530 Wed, 04 Nov 2020 11:34:50 +0530 NodeStatusUnknown Kubelet stopped posting node status.
我该如何解决此问题。
答案 0 :(得分:0)
这里没什么可看的。
# journalctl -u kubelet
Out of Memory
错误。可以通过在--kubelet-extra-args
中添加适当的BootstrapArguments
来解决。例如:--kubelet-extra-args "--kube-reserved memory=0.3Gi,ephemeral-storage=1Gi --system-reserved memory=0.2Gi,ephemeral-storage=1Gi --eviction-hard memory.available<200Mi,nodefs.available<10%"
kubelet有时无法修补其节点状态,例如超过250个 资源保留在节点上,kubelet无法观看超过250个流 与kube-apiserver同时使用。所以,我只是调整kube-apiserver --http2-max-streams-per-connection到1000以减轻痛苦。
Not Ready
状态。