mirror of
https://github.com/clearml/clearml-helm-charts
synced 2025-01-31 17:16:47 +00:00
2861b5b074
* Fixed: if triton is disabled, ignore autoscaling * Changed: app version bump to 1.3.0 * Changed: bump up * Changed: bump up
45 lines
1.7 KiB
YAML
45 lines
1.7 KiB
YAML
{{- if .Values.clearml_serving_triton.enabled }}
|
|
{{- if .Values.clearml_serving_triton.autoscaling.enabled }}
|
|
apiVersion: {{ include "common.capabilities.hpa.apiVersion" ( dict "context" $ ) }}
|
|
kind: HorizontalPodAutoscaler
|
|
metadata:
|
|
name: {{ include "clearmlServing.fullname" . }}-triton-hpa
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
annotations: {}
|
|
labels:
|
|
clearml.serving.service: {{ include "clearmlServing.fullname" . }}-triton
|
|
spec:
|
|
scaleTargetRef:
|
|
apiVersion: "apps/v1"
|
|
kind: Deployment
|
|
name: {{ include "clearmlServing.fullname" . }}-triton
|
|
minReplicas: {{ .Values.clearml_serving_triton.autoscaling.minReplicas }}
|
|
maxReplicas: {{ .Values.clearml_serving_triton.autoscaling.maxReplicas }}
|
|
metrics:
|
|
{{- if .Values.clearml_serving_triton.autoscaling.targetCPU }}
|
|
- type: Resource
|
|
resource:
|
|
name: cpu
|
|
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
|
|
targetAverageUtilization: {{ .Values.clearml_serving_triton.autoscaling.targetCPU }}
|
|
{{- else }}
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: {{ .Values.clearml_serving_triton.autoscaling.targetCPU }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.clearml_serving_triton.autoscaling.targetMemory }}
|
|
- type: Resource
|
|
resource:
|
|
name: memory
|
|
{{- if semverCompare "<1.23-0" (include "common.capabilities.kubeVersion" .) }}
|
|
targetAverageUtilization: {{ .Values.clearml_serving_triton.autoscaling.targetMemory }}
|
|
{{- else }}
|
|
target:
|
|
type: Utilization
|
|
averageUtilization: {{ .Values.clearml_serving_triton.autoscaling.targetMemory }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|