Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions helm/cosmo/charts/router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This is the official Helm Chart for the WunderGraph Cosmo Router.
| affinity | object | `{}` | |
| autoscaling.behavior | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.extraMetrics | list | `[]` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
Expand Down
3 changes: 3 additions & 0 deletions helm/cosmo/charts/router/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ spec:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- with .Values.autoscaling.extraMetrics }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.autoscaling.behavior }}
behavior:
{{- toYaml . | nindent 4 }}
Expand Down
12 changes: 12 additions & 0 deletions helm/cosmo/charts/router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,18 @@ autoscaling:
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
extraMetrics: []
# Additional HPA metrics appended to the rendered HPA's `metrics:` list.
# Each entry must be a full `autoscaling/v2` metric object.
# Useful for scaling on metrics provided by an external metrics adapter on top of CPU/memory.
# Example of using an external metric:
# - type: External
# external:
# metric:
# name: router.http.requests.in_flight
# target:
# type: AverageValue
# averageValue: "50"
behavior: {}
# Configures the HPA scaling behavior. When unset, Kubernetes applies its defaults
# (300s scale-down stabilization window, no scale-up window).
Expand Down
Loading