Skip to content

Commit

Permalink
Add podAnnotations for proportional-autoscaler (#124)
Browse files Browse the repository at this point in the history
Signed-off-by: jukie <[email protected]>
  • Loading branch information
jukie authored Jun 10, 2023
1 parent 4d292a2 commit 0c0ab6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 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.24.0
version: 1.24.1
appVersion: 1.10.1
home: https://coredns.io
icon: https://coredns.io/images/CoreDNS_Colour_Horizontal.png
Expand All @@ -20,4 +20,4 @@ type: application
annotations:
artifacthub.io/changes: |
- kind: added
description: Added podSecurityContext
description: Added autoscaler podAnnotations
3 changes: 3 additions & 0 deletions charts/coredns/templates/deployment-autoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
{{- if .Values.isClusterService }}
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
{{- end }}
{{- with .Values.autoscaler.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ template "coredns.fullname" . }}-autoscaler
{{- $priorityClassName := default .Values.priorityClassName .Values.autoscaler.priorityClassName }}
Expand Down
3 changes: 3 additions & 0 deletions charts/coredns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ autoscaler:
# If true does not allow single points of failure to form
preventSinglePointFailure: true

# Annotations for the coredns proportional autoscaler pods
podAnnotations: {}

## Optionally specify some extra flags to pass to cluster-proprtional-autoscaler.
## Useful for e.g. the nodelabels flag.
# customFlags:
Expand Down

0 comments on commit 0c0ab6d

Please sign in to comment.