added repo
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{{- if .Values.keda.enabled }}
|
||||
apiVersion: keda.sh/v1alpha1
|
||||
kind: ScaledObject
|
||||
metadata:
|
||||
name: {{ include "bifrost.fullname" . }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
{{- include "bifrost.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "5"
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: {{ include "bifrost.fullname" . }}
|
||||
pollingInterval: {{ .Values.keda.pollingInterval | default 30 }}
|
||||
minReplicaCount: {{ .Values.keda.minReplicaCount | default 2 }}
|
||||
maxReplicaCount: {{ .Values.keda.maxReplicaCount | default 200 }}
|
||||
advanced:
|
||||
horizontalPodAutoscalerConfig:
|
||||
behavior:
|
||||
scaleDown:
|
||||
stabilizationWindowSeconds: {{ .Values.keda.scaledown.stabilizationWindowSeconds }}
|
||||
policies:
|
||||
{{- range .Values.keda.scaledown.policies }}
|
||||
- type: {{ .type }}
|
||||
value: {{ .value }}
|
||||
periodSeconds: {{ .periodseconds }}
|
||||
{{- end }}
|
||||
selectPolicy: {{ .Values.keda.scaledown.selectpolicy }}
|
||||
scaleUp:
|
||||
stabilizationWindowSeconds: {{ .Values.keda.scaleup.stabilizationWindowSeconds }}
|
||||
policies:
|
||||
{{- range .Values.keda.scaleup.policies }}
|
||||
- type: {{ .type }}
|
||||
value: {{ .value }}
|
||||
periodSeconds: {{ .periodseconds }}
|
||||
{{- end }}
|
||||
selectPolicy: {{ .Values.keda.scaleup.selectpolicy }}
|
||||
triggers:
|
||||
{{- toYaml .Values.keda.triggers | nindent 2 }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user