Public Information
This commit is contained in:
20
charts/nappl/templates/hpa.tpl
Normal file
20
charts/nappl/templates/hpa.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- if .Values.autoScale }}
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: {{ .component.fullName }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "nplus.instanceLabels" . | nindent 4 }}
|
||||
annotations:
|
||||
{{- include "nplus.annotations" . | nindent 4 }}
|
||||
{{- include "nplus.argoWave" . | nindent 4 }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
name: {{ .component.fullName }}
|
||||
minReplicas: {{ .Values.replicaCount }}
|
||||
maxReplicas: {{ .Values.autoScale }}
|
||||
targetCPUUtilizationPercentage: 80
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user