Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to enable rolling update of coreDNS pods when autoscaler is enabled #170

Open
kky-fury opened this issue Jun 19, 2024 · 0 comments

Comments

@kky-fury
Copy link

kky-fury commented Jun 19, 2024

Hello all,

I am trying to update coreDNS image versions across different Kubernetes clusters.

I am using the helm chart version 1.31.0 with the following relevant values:

replicaCount: 6
rollingUpdate:
    maxUnavailable: 1
    maxSurge: 25%
...
autoscaler:
    enabled: true
    min: 4
    max: 100
podDisruptionBudget:
    minAvailable: 1

When I do the update all coreDNS pods are started at once without respecting the rollingUpdate constraints. I think it might be because of how replicas are defined in templates/deployment.yaml:

spec:
  {{- if and (not .Values.autoscaler.enabled) (not .Values.hpa.enabled) }}
  replicas: {{ .Values.replicaCount }}

Can you please suggest possible methods to do the update while respecting the rolling update constraints in this scenario.

Thank you for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant