<p>I have few nodes and all of them have taints. I want to add toleration to the required pods / deployments of helm charts. The issue is I can specify that in the values file,</p>
<pre class="lang-yaml prettyprint-override"><code>---
installCRDs: true

tolerations:
  - key: foo
    operator: &quot;Equal&quot;
    value: bar
</code></pre>
<p>but this only works for one deployment/pod which is created by the cert-manager.</p>
<pre><code>cert-manager           deployment.apps/cert-manager                1/1     1            1           3m40s
cert-manager           deployment.apps/cert-manager-cainjector     0/1     1            0           3m40s
cert-manager           deployment.apps/cert-manager-webhook        0/1     1            0           3m40s
</code></pre>
<pre><code>cert-manager           pod/cert-manager-cainjector-6cd8d7f84b-z4pkc     0/1     Pending   0          3m35s
cert-manager           pod/cert-manager-startupapicheck-zlkn9           0/1     Pending   0          3m24s
cert-manager           pod/cert-manager-webhook-64d76ab6c-9g698         0/1     Pending   0          3m35s
</code></pre>
<pre><code>cert-manager   job.batch/cert-manager-startupapicheck   0/1           3m33s      3m33s
</code></pre>
<p>All deployments and pods other than the main one are basically saying could not tolerated taint thats why they could not scheduled when I describe them.</p>
<p>When I try the same thing for the other charts, they are working fine. But helper pods/deployments of cert-manager are not obtaining toleration specified in the values file. How can I solve this? Thanks!</p>

Alicia
<p>You need three tolerations, as the main toleration only applies for the <code>cert-manager</code>.</p>
<p>So we need one for chain injector and webhook.</p>
<pre><code>webhook:
 tolerations:
  - key: foo
    operator: &quot;Equal&quot;
    value: bar
</code></pre>
<p>and injector</p>
<pre><code>cainjector:
 tolerations:
  - key: foo
    operator: &quot;Equal&quot;
    value: bar
</code></pre>
<p>You can explore the default here <a href="https://artifacthub.io/packages/helm/cert-manager/cert-manager/1.9.0?modal=values&amp;path=webhook.tolerations" rel="nofollow noreferrer">cert-manager-value-path</a></p>
