Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions charts/coredns/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: coredns
version: 1.20.1
version: 1.20.2
appVersion: 1.9.4
home: https://coredns.io
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
Expand All @@ -19,9 +19,5 @@ engine: gotpl
type: application
annotations:
artifacthub.io/changes: |
- kind: changed
description: Use chart appVersion as default image tag
- kind: added
description: Add HagaiBarel as chart maintainer
- kind: fixed
description: Fix reference link to values file in the readme
description: Fix HPA configuration
2 changes: 1 addition & 1 deletion charts/coredns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ metadata:
{{- end }}
{{- end }}
spec:
{{- if not .Values.autoscaler.enabled }}
{{- if and (not .Values.autoscaler.enabled) (not .Values.hpa.enabled) }}
replicas: {{ .Values.replicaCount }}
{{- end }}
strategy:
Expand Down
37 changes: 21 additions & 16 deletions charts/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@ resources:
cpu: 100m
memory: 128Mi

## Create HorizontalPodAutoscaler object.
##
# autoscaling:
# minReplicas: 1
# maxReplicas: 10
# metrics:
# - type: Resource
# resource:
# name: cpu
# targetAverageUtilization: 60
# - type: Resource
# resource:
# name: memory
# targetAverageUtilization: 60

rollingUpdate:
maxUnavailable: 1
maxSurge: 25%
Expand Down Expand Up @@ -254,7 +239,27 @@ customLabels: {}
customAnnotations: {}

## Alternative configuration for HPA deployment if wanted
#
## Create HorizontalPodAutoscaler object.
##
# hpa:
# enabled: false
# minReplicas: 1
# maxReplicas: 10
# metrics:
# metrics:
# - type: Resource
# resource:
# name: memory
# target:
# type: Utilization
# averageUtilization: 60
# - type: Resource
# resource:
# name: cpu
# target:
# type: Utilization
# averageUtilization: 60

hpa:
enabled: false
minReplicas: 1
Expand Down