<p>i am learning kubernetes in google cloud right now with Kubernetes 1.12 version</p>

<p>I deployed a daemonset and then suddently the daemonset is in pending situation. This is caused by insufficient resources quota.</p>

<p>I can solve that by adding more nodes in my cluster. However, i'm curious about how to deploy the daemonsets as a first deploy rather than other deployments ?</p>

<p>Have read the documentation but i still can not find out the solution.</p>

Nicky Puff
<p>There are ways to do it.</p>

<ol>
<li><p>You can use pod priority in your pod definition.You need to define  pod priority for your daemonsets.<a href="https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/</a></p></li>
<li><p>Try to deploy these daemonsets before all deployments.</p></li>
<li><p>Define Helm charts and deploy chart before other deployments helm charts.</p></li>
<li><p>Lets say you have all the deployments and daemonsets in one helm chart, then add file naming convention as <code>0-daemonsets.yaml , 1-deployments.yaml</code> . If you do like this <code>0-daemonsets.yaml</code> will get deployed first followed by <code>1-deployments.yaml</code>.</p></li>
</ol>
