Support for tolerations

Bug #1906692 reported by Syed Mohammad Adnan Karim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned
CoreDNS Charm
Won't Fix
Undecided
Unassigned

Bug Description

I have a kubernetes cluster in which all the workers are tainted with:

<Key>=true:NoSchedule

In order to deploy the CoreDNS charm, I would need to be able to configure tolerations in the spec/YAML of CoreDNS. It seems that the charm currently does not support that.
Is that something that can be added to the charm via a config option?

In the meantime, I used a more manual method by updating the default coredns.yaml.sed (https://github.com/coredns/deployment/blob/master/kubernetes/coredns.yaml.sed) with the required tolerations (just needs to have the value "Exists" with no Key).

...
    spec:
      priorityClassName: system-cluster-critical
      serviceAccountName: coredns
      tolerations:
        - operator: "Exists"
      nodeSelector:
        kubernetes.io/os: linux
...

Felipe Reyes (freyes)
tags: added: sts
Revision history for this message
Chris Sanders (chris.sanders) wrote :

I'm removing Field High as this is a request for a new feature not a report of a bug in existing features.

The implementation, based on your description, should be straight forward and would qualify for a field-medium if you want to submit a merge request. Otherwise we will triage and see when we can address as a new feature.

Revision history for this message
Chris Sanders (chris.sanders) wrote :

@Syed to be clear, field-medium indicates you have a Merge you would like reviewed. Can you please include that in a comment when you subscribe field-medium.

Revision history for this message
Chris Sanders (chris.sanders) wrote :

As there isn't a contribution to be merged, I'm removing field-medium from this. If you create a MR later you can re-add it at that time.

Revision history for this message
John A Meinel (jameinel) wrote :

Something like this doesn't feel like it should be coming from the *Charm* as it is very specific to how your K8s cluster is configured. It should be coming from the Admin saying that "in this particular deployment, I want this charm to be scheduled differently than some other user would want".

I would rather not have charms be able to express this, as it feels like it is binding an abstract "how to run an application" with a particular "on a given K8s deployment, this is how workers are configured".

Revision history for this message
Cory Johns (johnsca) wrote :

This was also discussed some in https://bugs.launchpad.net/juju/+bug/1895887

Revision history for this message
Pen Gale (pengale) wrote :

Currently triaged as medium. Can be bumped in priority, but would require a roadmap swap.

Changed in juju:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
George Kraft (cynerva) wrote :

Marking the CoreDNS charm as Won't Fix. This will be fixed in Juju.

Changed in charm-coredns:
status: New → Won't Fix
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This Medium-priority bug has not been updated in 60 days, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: Medium → Low
tags: added: expirebugs-bot
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.