<p>It sounds like you need to add tolerations to the <code>imagepuller</code> Job created by the kube-flegdged controller. Looking through <a href="https://github.com/senthilrch/kube-fledged" rel="nofollow noreferrer">the code</a>, I don't see any facility for setting that via the Helm chart (there is a <code>tolerations</code> setting in <code>values.yaml</code>, but that is used to set tolerations on the kube-fledged controller and doesn't get passed through to generated resources).</p>
<p>You could <a href="https://github.com/senthilrch/kube-fledged/blob/837f2b36307f9b3681996722d613b5c24945a203/pkg/images/image_helpers.go#L125-L128" rel="nofollow noreferrer">modify the source</a> to add custom tolerations; alternatively, you could look into creating a <a href="https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook" rel="nofollow noreferrer">mutating web hook</a> that would perform the modification when the resources are created.</p>

CC BY-SA 4.0
2024-03-20T16:27:25.440Z
Yeah, adding the toleration in the values of helm chart works.
sylvesterasa
CC BY-SA 4.0
2024-03-20T16:11:55.837Z
2024-03-20T16:11:55.837Z
larsks
<p><a href="https://github.com/senthilrch/kube-fledged" rel="nofollow noreferrer">kube-fledged</a> provides <code>nodeSelector</code> to select the node you want the image to be cached on. But there are taints on the nodes in my cluster. Would it be possible to add a toleration in the <code>imagecache</code> manifest?</p>

<kubernetes>
Is it possible to add a toleration in kube-fledged?
sylvesterasa
# Is it possible to add a toleration in kube-fledged?

(Asked by: username_0 on 2024-03-20)

[kube-fledged](https://github.com/senthilrch/kube-fledged) provides `nodeSelector` to select the node you want the image to be cached on. But there are taints on the nodes in my cluster. Would it be possible to add a toleration in the `imagecache` manifest?

**Tags:** kubernetes


---

## 1 answers

### Answer by username_1 on 2024-03-20. Score: 0 | Accepted answer

It sounds like you need to add tolerations to the `imagepuller` Job created by the kube-flegdged controller. Looking through [the code](https://github.com/senthilrch/kube-fledged), I don't see any facility for setting that via the Helm chart (there is a `tolerations` setting in `values.yaml`, but that is used to set tolerations on the kube-fledged controller and doesn't get passed through to generated resources).

You could [modify the source](https://github.com/senthilrch/kube-fledged/blob/837f2b36307f9b3681996722d613b5c24945a203/pkg/images/image_helpers.go#L125-L128) to add custom tolerations; alternatively, you could look into creating a [mutating web hook](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook) that would perform the modification when the resources are created.

> **Comments:**
> **username_0**: Yeah, adding the toleration in the values of helm chart works.  

---

