diff --git a/valeriano-manassero/trino/Chart.yaml b/valeriano-manassero/trino/Chart.yaml index 7e2719f..aa05a1c 100644 --- a/valeriano-manassero/trino/Chart.yaml +++ b/valeriano-manassero/trino/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "363" description: High performance, distributed SQL query engine for big data name: trino -version: 1.5.0 +version: 1.6.0 home: https://trino.io icon: https://trino.io/assets/images/trino-logo/trino-ko_tiny-alt.svg sources: diff --git a/valeriano-manassero/trino/README.md b/valeriano-manassero/trino/README.md index b029789..45bf12e 100644 --- a/valeriano-manassero/trino/README.md +++ b/valeriano-manassero/trino/README.md @@ -1,6 +1,6 @@ # trino -![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![AppVersion: 363](https://img.shields.io/badge/AppVersion-363-informational?style=flat-square) +![Version: 1.6.0](https://img.shields.io/badge/Version-1.6.0-informational?style=flat-square) ![AppVersion: 363](https://img.shields.io/badge/AppVersion-363-informational?style=flat-square) High performance, distributed SQL query engine for big data @@ -39,6 +39,9 @@ High performance, distributed SQL query engine for big data | resources | object | `{}` | | | schemas | object | `{}` | | | secretMounts | list | `[]` | | +| server.autoscaler.enabled | bool | `false` | | +| server.autoscaler.maxReplicas | int | `5` | | +| server.autoscaler.targetCPUUtilizationPercentage | int | `50` | | | server.config.http.port | int | `8080` | | | server.config.httpsServer.enabled | bool | `false` | | | server.config.httpsServer.keystore.key | string | `""` | | diff --git a/valeriano-manassero/trino/templates/autoscaler.yaml b/valeriano-manassero/trino/templates/autoscaler.yaml new file mode 100644 index 0000000..42bdc62 --- /dev/null +++ b/valeriano-manassero/trino/templates/autoscaler.yaml @@ -0,0 +1,14 @@ +{{- if .Values.server.autoscaler.maxReplicas }} +apiVersion: autoscaling/v1 +kind: HorizontalPodAutoscaler +metadata: + name: {{ template "trino.worker" . }} +spec: + maxReplicas: {{ .Values.server.autoscaler.maxReplicas }} + minReplicas: {{ .Values.server.workers }} + scaleTargetRef: + apiVersion: apps/v1 + kind: Deployment + name: {{ template "trino.worker" . }} + targetCPUUtilizationPercentage: {{ .Values.server.autoscaler.targetCPUUtilizationPercentage }} +{{- end }} diff --git a/valeriano-manassero/trino/values.yaml b/valeriano-manassero/trino/values.yaml index abef398..82424d5 100644 --- a/valeriano-manassero/trino/values.yaml +++ b/valeriano-manassero/trino/values.yaml @@ -49,6 +49,10 @@ server: type: "UseG1GC" g1: heapRegionSize: "32M" + autoscaler: + enabled: false + maxReplicas: 5 + targetCPUUtilizationPercentage: 50 initContainers: {} # coordinator: