diff --git a/charts/coredns/Chart.yaml b/charts/coredns/Chart.yaml index 9a91e56..1172c19 100644 --- a/charts/coredns/Chart.yaml +++ b/charts/coredns/Chart.yaml @@ -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 @@ -20,4 +20,4 @@ type: application annotations: artifacthub.io/changes: | - kind: added - description: Added podSecurityContext + description: Added autoscaler podAnnotations diff --git a/charts/coredns/templates/deployment-autoscaler.yaml b/charts/coredns/templates/deployment-autoscaler.yaml index 6623020..cb4e806 100644 --- a/charts/coredns/templates/deployment-autoscaler.yaml +++ b/charts/coredns/templates/deployment-autoscaler.yaml @@ -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 }} diff --git a/charts/coredns/values.yaml b/charts/coredns/values.yaml index d0dd7be..508e9a4 100644 --- a/charts/coredns/values.yaml +++ b/charts/coredns/values.yaml @@ -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: