Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 2 additions & 0 deletions helm/cosmo/charts/router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This is the official Helm Chart for the WunderGraph Cosmo Router.
| additionalLabels | object | `{}` | Add labels to deployment (metadata.labels) |
| additionalPodLabels | object | `{}` | Add labels to deployment pod template (spec.template.metadata.labels) |
| affinity | object | `{}` | |
| autoscaling.behavior | object | `{}` | |
| autoscaling.enabled | bool | `false` | |
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
Expand Down Expand Up @@ -68,6 +69,7 @@ This is the official Helm Chart for the WunderGraph Cosmo Router.
| priorityClassName | string | `""` | Set to existing PriorityClass name to control pod preemption by the scheduler |
| probes.liveness | object | `{"httpGet":{"path":"/health/live","port":"http"},"initialDelaySeconds":10}` | Configure liveness probe |
| probes.readiness | object | `{"httpGet":{"path":"/health/ready","port":"http"},"initialDelaySeconds":5}` | Configure readiness probe |
| probes.startup | object | `{}` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext | object | `{}` | |
Expand Down
4 changes: 4 additions & 0 deletions helm/cosmo/charts/router/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ spec:
readinessProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.probes.startup }}
startupProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
volumeMounts:
{{- if .Values.existingConfigmap }}
- name: router-config
Expand Down
4 changes: 4 additions & 0 deletions helm/cosmo/charts/router/templates/hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ spec:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- with .Values.autoscaling.behavior }}
behavior:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
21 changes: 21 additions & 0 deletions helm/cosmo/charts/router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,26 @@ autoscaling:
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
behavior:
# Configures the HPA scaling behavior. When unset, Kubernetes applies its defaults
# (300s scale-down stabilization window, no scale-up window).
# Example of a custom scale up and scale down behavior:
# scaleUp:
# stabilizationWindowSeconds: 180
# selectPolicy: Min
# policies:
# - type: Pods
# value: 2
# periodSeconds: 60
# - type: Percent
# value: 50
# periodSeconds: 60
# scaleDown:
# stabilizationWindowSeconds: 120
# policies:
# - type: Percent
# value: 50
# periodSeconds: 60

nodeSelector: {}

Expand Down Expand Up @@ -172,6 +192,7 @@ probes:
path: /health/live
port: http
initialDelaySeconds: 10
startup: {}

global:
helmTests: false
Expand Down
Loading