You've already forked DataMate
29
deployment/helm/milvus/templates/querynode-hpa.yaml
Normal file
29
deployment/helm/milvus/templates/querynode-hpa.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
{{- if and .Values.queryNode.enabled .Values.queryNode.hpa.enabled }}
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ template "milvus.querynode.fullname" . }}-hpa
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
component: "querynode"
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ template "milvus.querynode.fullname" . }}
|
||||
minReplicas: {{ .Values.queryNode.hpa.minReplicas | default 1 }}
|
||||
maxReplicas: {{ .Values.queryNode.hpa.maxReplicas | default 10 }}
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: {{ .Values.queryNode.hpa.cpuUtilization | default 40 }}
|
||||
- type: Resource
|
||||
resource:
|
||||
name: memory
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: {{ .Values.queryNode.hpa.memoryUtilization | default 40 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user