0/1个节点可用1个节点具有磁盘压力

时间:2018-09-10 02:44:31

标签: kubernetes

我正在尝试在本地microk8s群集上安排广告连播。在事件部分中,我看到警告0/1 nodes are available 1 node(s) had diskpressure,该警告如何检查节点的空间以及如何设置更大的值。

1 个答案:

答案 0 :(得分:2)

以下是您可以根据要设置的阈值限制设置的参数:

// index.js
import { React } from 'react'
import { ReactDom } from 'react-dom'
import { $ } from 'jQuery'

// index.html
<script src="index.js"></script>
<!-- your jquery hook -->

拾取已加载的systemctl status kubelet â— kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/kubelet.service.d └─10-kubeadm.conf Active: active (running) since Fri 2018-08-17 15:54:28 IST; 3 weeks 2 days ago Docs: http://kubernetes.io/docs/ Main PID: 580 (kubelet) Tasks: 78 Memory: 88.5M CGroup: /system.slice/kubelet.service └─580 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --pod-manifest-path=/etc/k... 文件并按如下所示修改内容:

/etc/systemd/system/kubelet.service

vi /etc/systemd/system/kubelet.service

[Unit] Description=kubelet: The Kubernetes Node Agent Documentation=http://kubernetes.io/docs/ [Service] ExecStart=/usr/bin/kubelet --eviction-hard nodefs.available<1Gi --eviction-soft nodefs.available<1Gi Restart=always StartLimitInterval=0 RestartSec=10 [Install] WantedBy=multi-user.target --eviction-hard是您可以根据需要设置的参数, 有关如何设置这些参数的更多详细信息,请参阅以下官方文档: https://kubernetes.io/docs/tasks/administer-cluster/out-of-resource/

希望获得帮助,

谢谢!