Search code examples
kubernetesamazon-ekscoredns

EKS coredns addon deployment resets after edit


I'm trying to tune the resources for coredns add-on in EKS (installed the add-on via aws) by running kubectl edit deployment coredns and then editing the memory limit and request in the yaml file. the change applies for a couple of minutes but then it reverts by itself for no apparent reason. docs in aws don't show a way to edit those configurations from the add-on manager itself. is there anything I'm missing? i've noticed the annotation for kubectl.kubernetes.io/last-applied-configuration always stays with the previous attributes no matter what i do so this may be a hint?


Solution

  • So The way to do it according to AWS is to either increase the replica count on the deployment which they apparently don't control in any way or to move to self managed coredns and control the memory values of the pods yourself.

    probably can create an HPA resource that will scale the deployment accordingly though i would expect AWS to have one themselves for this purpose