-
Hi, After deploying keda with the default values provided under the /deploy I have tiller installed with helm version 2.11. scaledobjects yaml file : {{- if .Values.metricautoscaling.enabled }}
apiVersion: keda.k8s.io/v1alpha1
kind: ScaledObject
metadata:
name: {{ template "application.name" . }}-kedascaler
labels:
app: {{ template "application.name" . }}
deploymentName: {{ template "application.name" . }}
spec:
scaleTargetRef:
deploymentName: {{ template "application.name" . }}
pollingInterval: 15 # Optional. Default: 30 seconds
cooldownPeriod: 30 # Optional. Default: 300 seconds
minReplicaCount: {{ .Values.replicaCount }} # Optional. Default: 0
maxReplicaCount: {{ .Values.metricautoscaling.maxReplicaCount }} # Optional. Default: 100
triggers:
- type: {{ .Values.metricautoscaling.type }}
metadata:
# Required
serverAddress: {{ .Values.metricautoscaling.serverAddress }}
metricName: {{ .Values.metricautoscaling.metricName }}
threshold: {{ .Values.metricautoscaling.threshold }}
query: {{ .Values.metricautoscaling.query }}
{{- end }} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We can close this adding apigroups to tiller worked. |
Beta Was this translation helpful? Give feedback.
We can close this adding apigroups to tiller worked.