forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/coredns] Chart updates (helm#23284)
* [stable/coredns] Add ability to customize, preStopHook, podAnnotations, rolllingUpdate specs, terminationGracePeriodSeconds to coredns. Add optional HPA definition as a alternative to proportional autoscaler. Signed-off-by: Adam Hamsik <[email protected]> * Fix helm lint run Signed-off-by: Adam Hamsik <[email protected]> * Update documentation, add custom labels to HPA. Signed-off-by: Adam Hamsik <[email protected]> * Fix rollingupdate variable name. Signed-off-by: Adam Hamsik <[email protected]> Co-authored-by: Martin Dojcak <[email protected]>
- Loading branch information
Showing
6 changed files
with
97 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if and (.Values.hpa.enabled) (not .Values.autoscaler.enabled) }} | ||
--- | ||
apiVersion: autoscaling/v2beta1 | ||
kind: HorizontalPodAutoscaler | ||
metadata: | ||
name: {{ template "coredns.fullname" . }} | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | ||
{{- if .Values.isClusterService }} | ||
k8s-app: {{ .Chart.Name | quote }} | ||
kubernetes.io/cluster-service: "true" | ||
kubernetes.io/name: "CoreDNS" | ||
{{- end }} | ||
app.kubernetes.io/name: {{ template "coredns.name" . }} | ||
{{- if .Values.customLabels }} | ||
{{ toYaml .Values.customLabels | indent 4 }} | ||
{{- end }} | ||
spec: | ||
scaleTargetRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: {{ template "coredns.fullname" . }} | ||
minReplicas: {{ .Values.hpa.minReplicas }} | ||
maxReplicas: {{ .Values.hpa.maxReplicas }} | ||
metrics: | ||
{{ toYaml .Values.hpa.metrics | indent 4 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters