Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -15,6 +15,7 @@ This is the official Helm Chart for the WunderGraph Cosmo Router.
| autoscaling.maxReplicas | int | `100` | |
| autoscaling.minReplicas | int | `1` | |
| autoscaling.targetCPUUtilizationPercentage | int | `80` | |
| autoscaling.behavior | object | `{}` | Configure the [HPA scaling behavior](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior) |
| commonConfiguration | string | `"version: \"1\"\nlog_level: \"info\""` | You can use this to provide the router configuration via yaml. Values here have precedence over the configurations section. For a full list of available configuration options, see https://cosmo-docs.wundergraph.com/router/configuration This value is processed with the helm `tpl` function allowing referencing of variables and inclusion of templates |
| commonConfigurationPath | string | `""` | Path to a configuration file to embed. If set, this takes precedence over commonConfiguration. The file path is relative to the chart directory and will be processed with the helm `tpl` function. Example: "configs/router-config.yaml" |
| commonLabels | object | `{}` | Add labels to all deployed resources |
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 | `{}` | Configure startup probe |
| 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 }}
2 changes: 2 additions & 0 deletions helm/cosmo/charts/router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ autoscaling:
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
behavior: {}
Comment thread
pepol marked this conversation as resolved.

nodeSelector: {}

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

global:
helmTests: false
Expand Down
Loading