mirror of
https://github.com/helm/charts.git
synced 2026-08-23 06:17:18 +00:00
[stable/traefik] HorizontalPodAutoscaler (#10288)
* stable/traefik: Add hpa object Signed-off-by: Ricardo Hernandez <ricardo.hernandez@mongodb.com> * stable/traefik: bump version Signed-off-by: Ricardo Hernandez <ricardo.hernandez@mongodb.com> * stable/traefik: document autoscaling value Signed-off-by: Ricardo Hernandez <ricardo.hernandez@mongodb.com> * stable/traefik: Remove trailing whitespace in values Signed-off-by: Ricardo Hernandez <ricardo.hernandez@mongodb.com> * Comment autoscaling value Signed-off-by: Ricardo Hernandez <ricardo.hernandez@mongodb.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
2311cf15cf
commit
3fea91c947
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: traefik
|
||||
version: 1.59.2
|
||||
version: 1.60.0
|
||||
appVersion: 1.7.7
|
||||
description: A Traefik based Kubernetes ingress controller with Let's Encrypt support
|
||||
keywords:
|
||||
|
||||
@@ -216,6 +216,7 @@ The following table lists the configurable parameters of the Traefik chart and t
|
||||
| `tracing.datadog.localAgentHostPort` | Location of the Datadog agent where spans will be sent | `127.0.0.1:8126` |
|
||||
| `tracing.datadog.debug` | Enables Datadog debugging | `false` |
|
||||
| `tracing.datadog.globalTag` | Apply shared tag in a form of Key:Value to all the traces | `""` |
|
||||
| `autoscaling` | HorizontalPodAutoscaler for the traefik Deployment | `{}` |
|
||||
|
||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example:
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{{- if .Values.autoscaling }}
|
||||
apiVersion: autoscaling/v2beta1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ template "traefik.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "traefik.name" . }}
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
release: {{ .Release.Name | quote }}
|
||||
heritage: {{ .Release.Service | quote }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ template "traefik.fullname" . }}
|
||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
||||
metrics:
|
||||
{{ toYaml .Values.autoscaling.metrics | indent 4 }}
|
||||
{{- end }}
|
||||
@@ -374,3 +374,18 @@ tracing:
|
||||
# localAgentHostPort: "127.0.0.1:8126"
|
||||
# debug: false
|
||||
# globalTag: ""
|
||||
|
||||
## Create HorizontalPodAutoscaler object.
|
||||
##
|
||||
# autoscaling:
|
||||
# minReplicas: 1
|
||||
# maxReplicas: 10
|
||||
# metrics:
|
||||
# - type: Resource
|
||||
# resource:
|
||||
# name: cpu
|
||||
# targetAverageUtilization: 60
|
||||
# - type: Resource
|
||||
# resource:
|
||||
# name: memory
|
||||
# targetAverageUtilization: 60
|
||||
|
||||
Reference in New Issue
Block a user