diff --git a/README.md b/README.md index 62696fa..46771ac 100644 --- a/README.md +++ b/README.md @@ -649,6 +649,7 @@ Chart configuration is as follows: | `autoscaling.targetMemoryUtilizationPercentage` | `""` | When to scale up | | `autoscaling.labels` | `{}` | Additional HPA labels | | `autoscaling.annotations` | `{}` | Additional HPA annotations | +| `autoscaling.behavior` | `{}` | [Configurable scaling behavior](https://kubernetes.io/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale/#configurable-scaling-behavior) | | `nodeSelector` | `{}` | Standard Kubernetes stuff | | `tolerations` | `[]` | Standard Kubernetes stuff | | `affinity` | `{}` | Standard Kubernetes stuff | diff --git a/helm/mail/templates/hpa.yaml b/helm/mail/templates/hpa.yaml index 212c53b..4dfcfda 100644 --- a/helm/mail/templates/hpa.yaml +++ b/helm/mail/templates/hpa.yaml @@ -42,6 +42,10 @@ spec: type: Utilization averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} + {{- with .Values.autoscaling.behavior }} + behavior: + {{- toYaml . | nindent 4 }} + {{- end }} {{- else }} {{- if .Values.autoscaling.targetCPUUtilizationPercentage }} - type: Resource diff --git a/helm/mail/values.yaml b/helm/mail/values.yaml index b0f09bc..96baf9d 100644 --- a/helm/mail/values.yaml +++ b/helm/mail/values.yaml @@ -106,6 +106,7 @@ autoscaling: # targetMemoryUtilizationPercentage: 80 labels: {} annotations: {} + behavior: {} nodeSelector: {} tolerations: []