Skip to content

Commit 7f80a82

Browse files
mohazza00mohazzabokysan
authored
Add support for hpa behavior (#276)
Co-authored-by: mohazza <m.abdullah@tu-berlin.de> Co-authored-by: Boky <bokysan@users.noreply.github.com>
1 parent 5dd6172 commit 7f80a82

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ Chart configuration is as follows:
649649
| `autoscaling.targetMemoryUtilizationPercentage` | `""` | When to scale up |
650650
| `autoscaling.labels` | `{}` | Additional HPA labels |
651651
| `autoscaling.annotations` | `{}` | Additional HPA annotations |
652+
| `autoscaling.behavior` | `{}` | [Configurable scaling behavior](https://kubernetes.io/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale/#configurable-scaling-behavior) |
652653
| `nodeSelector` | `{}` | Standard Kubernetes stuff |
653654
| `tolerations` | `[]` | Standard Kubernetes stuff |
654655
| `affinity` | `{}` | Standard Kubernetes stuff |

helm/mail/templates/hpa.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ spec:
4242
type: Utilization
4343
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
4444
{{- end }}
45+
{{- with .Values.autoscaling.behavior }}
46+
behavior:
47+
{{- toYaml . | nindent 4 }}
48+
{{- end }}
4549
{{- else }}
4650
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
4751
- type: Resource

helm/mail/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ autoscaling:
106106
# targetMemoryUtilizationPercentage: 80
107107
labels: {}
108108
annotations: {}
109+
behavior: {}
109110

110111
nodeSelector: {}
111112
tolerations: []

0 commit comments

Comments
 (0)