mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-03-14 14:16:16 +01:00
* Migrate helm chart from archived helm charts repo. Add github action which generates helm chart releases. Signed-off-by: Adam Hamsik <adam.hamsik@lablabs.io> * Add helm chart repository documentation Signed-off-by: Adam Hamsik <adam.hamsik@lablabs.io>
29 lines
No EOL
988 B
YAML
29 lines
No EOL
988 B
YAML
{{- 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 }} |