<p>I am trying to schedule a pod on my local <a href="https://github.com/ubuntu/microk8s" rel="nofollow noreferrer">microk8s</a> cluster. in the events section i see a warning <code>0/1 nodes are available 1 node(s) had diskpressure</code> how to check how much space node has and how to set a bigger value ..</p>

invariant
<p>Here are the parameters you can set as per the threshold limits you want to set :</p>

<pre><code>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...
</code></pre>

<p>Pick up the the loaded <code>/etc/systemd/system/kubelet.service</code> file and modify the content like this :</p>

<p><code>vi /etc/systemd/system/kubelet.service</code></p>

<pre><code>[Unit]
Description=kubelet: The Kubernetes Node Agent
Documentation=http://kubernetes.io/docs/

[Service]
ExecStart=/usr/bin/kubelet --eviction-hard nodefs.available&lt;1Gi --eviction-soft nodefs.available&lt;1Gi
Restart=always
StartLimitInterval=0
RestartSec=10

[Install]
WantedBy=multi-user.target
</code></pre>

<p>Here <code>--eviction-hard</code> and <code>--eviction-soft</code> is the parameters you can set as per your requirements,
For more details on how to set up these parameters refer this official documents:
<a href="https://kubernetes.io/docs/tasks/administer-cluster/out-of-resource/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/administer-cluster/out-of-resource/</a></p>

<p>Hope this help,</p>

<p>Thank you!</p>
