Skip to content

Commit

Permalink
Allow replica count to be set to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-ferrell committed Oct 1, 2024
1 parent 45257fb commit 17fb6ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "external-dns.selectorLabels" . | nindent 6 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/external-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

# -- Number of replicas to run. external-dns does not support more than one replica. This can be used to deploy to a failover cluster with zero replicas.
replicaCount: 1

image:
# -- Image repository for the `external-dns` container.
repository: registry.k8s.io/external-dns/external-dns
Expand Down

0 comments on commit 17fb6ad

Please sign in to comment.