Skip to content

Can Tolerations Be Added to kube-fledged in Kubernetes Clusters with Taints?

Inquiry:

KubeFleDged, a tool for managing container images, utilizes `nodeSelector` to dictate the caching nodes within your Kubernetes cluster.

However, with taints present on some of these selected nodes: Would it be feasible to introduce tolerations in accordance with those pre-existing conditions?

Understanding Through Answers:

KubeFleDged’s implementation does not directly provide the functionality for adding custom toleration settings within its Helm chart. However, there are strategies you might consider to achieve this goal.

  1. Modify Source Code: Directly altering source code is an option - specifically target modifications in the ImageHelpers package from [KubeFleDged's repository](https://github.com/senthilrch/kube-fledged/blob/837f2b36307f9b3681996722d613b5c24945a203/pkg/images/image_helpers.go). Look for the code snippet around line 125-128.
  2. Implement Mutating Webhook: Create a Kubernetes mutating webhook to apply custom tolerations when resources are generated, as suggested in [the official documentation](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#mutatingadmissionwebhook). This requires more setup but is flexible and powerful.

Previous Post
Running Multiple Docker Containers with High Perfo
Next Post
502 Server Error encountered when deploying a NET