diff --git a/charts/opennotificaties/CHANGELOG.md b/charts/opennotificaties/CHANGELOG.md index abb37b2..23d4c52 100644 --- a/charts/opennotificaties/CHANGELOG.md +++ b/charts/opennotificaties/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 1.8.0-beta.1 (2025-23-01) +- [#170] Add autoscaling behavior for ON + ## 1.8.0-beta.0 (2025-22-01) - [#169] Add pdb for worker diff --git a/charts/opennotificaties/Chart.yaml b/charts/opennotificaties/Chart.yaml index 0dd3798..47ab5db 100644 --- a/charts/opennotificaties/Chart.yaml +++ b/charts/opennotificaties/Chart.yaml @@ -3,7 +3,7 @@ name: opennotificaties description: API voor het routeren van notificaties type: application -version: 1.8.0-beta.0 +version: 1.8.0-beta.1 appVersion: latest dependencies: diff --git a/charts/opennotificaties/README.md b/charts/opennotificaties/README.md index e469028..d6b2a76 100644 --- a/charts/opennotificaties/README.md +++ b/charts/opennotificaties/README.md @@ -1,6 +1,6 @@ # opennotificaties -![Version: 1.7.0-beta.0](https://img.shields.io/badge/Version-1.7.0--beta.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) +![Version: 1.8.0-beta.1](https://img.shields.io/badge/Version-1.8.0--beta.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) API voor het routeren van notificaties @@ -16,6 +16,7 @@ API voor het routeren van notificaties | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | +| autoscaling.behavior | object | `{}` | | | autoscaling.enabled | bool | `false` | | | autoscaling.maxReplicas | int | `100` | | | autoscaling.minReplicas | int | `1` | | @@ -203,6 +204,7 @@ API voor het routeren van notificaties | tags.rabbitmq | bool | `true` | | | tags.redis | bool | `true` | | | tolerations | list | `[]` | | +| worker.autoscaling.behavior | object | `{}` | | | worker.autoscaling.enabled | bool | `false` | | | worker.autoscaling.maxReplicas | int | `100` | | | worker.autoscaling.minReplicas | int | `1` | | diff --git a/charts/opennotificaties/templates/hpa.yaml b/charts/opennotificaties/templates/hpa.yaml index ca19528..df6447b 100644 --- a/charts/opennotificaties/templates/hpa.yaml +++ b/charts/opennotificaties/templates/hpa.yaml @@ -29,6 +29,10 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} + {{- with .Values.autoscaling.behavior }} + behavior: + {{- toYaml . | nindent 4 }} + {{- end }} {{- end }} --- {{- if .Values.worker.autoscaling.enabled }} @@ -62,4 +66,8 @@ spec: type: Utilization averageUtilization: {{ .Values.worker.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} + {{- with .Values.worker.autoscaling.behavior }} + behavior: + {{- toYaml . | nindent 4 }} + {{- end }} {{- end }} diff --git a/charts/opennotificaties/values.yaml b/charts/opennotificaties/values.yaml index 68fd15c..183cc84 100644 --- a/charts/opennotificaties/values.yaml +++ b/charts/opennotificaties/values.yaml @@ -162,6 +162,7 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 80 targetMemoryUtilizationPercentage: 80 + behavior: {} pdb: create: false @@ -353,6 +354,8 @@ worker: maxReplicas: 100 targetCPUUtilizationPercentage: 80 targetMemoryUtilizationPercentage: 80 + behavior: {} + pdb: create: false minAvailable: 1