Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

hpa.yaml 1.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
  1. {{- if $.Values.autoscaling.enabled }}
  2. apiVersion: autoscaling/v2
  3. kind: HorizontalPodAutoscaler
  4. metadata:
  5. labels: {{ include "labels.standard" . | nindent 4 }}
  6. name: {{ include "name" . }}
  7. namespace: {{ .Release.Namespace }}
  8. spec:
  9. scaleTargetRef:
  10. apiVersion: apps/v1
  11. kind: Deployment
  12. name: {{ include "name" . }}
  13. minReplicas: {{ $.Values.autoscaling.minReplicas }}
  14. maxReplicas: {{ $.Values.autoscaling.maxReplicas }}
  15. metrics:
  16. {{- if ne "" $.Values.autoscaling.targetMemoryUtilizationPercentage }}
  17. - type: Resource
  18. resource:
  19. name: memory
  20. target:
  21. type: Utilization
  22. averageUtilization: {{ $.Values.autoscaling.targetMemoryUtilizationPercentage | int }}
  23. {{- end }}
  24. {{- if ne "" $.Values.autoscaling.targetCPUUtilizationPercentage }}
  25. - type: Resource
  26. resource:
  27. name: cpu
  28. target:
  29. type: Utilization
  30. averageUtilization: {{ $.Values.autoscaling.targetCPUUtilizationPercentage | int }}
  31. {{- end }}
  32. behavior:
  33. scaleDown:
  34. stabilizationWindowSeconds: 600
  35. policies:
  36. - type: Percent
  37. value: 10
  38. periodSeconds: 60
  39. scaleUp:
  40. stabilizationWindowSeconds: 0
  41. policies:
  42. - type: Pods
  43. value: 1
  44. periodSeconds: 30
  45. {{- end }}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...