coredns / coredns/helm

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

Open
#170 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Mustache
Stars
146
Forks
145
Avg merge
6d 5h
Merged PRs (30d)
2

Description

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:

```yaml
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`:

```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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.