Add custom ScaledObject annotations
Signed-off-by: Ivan Rizzante <i.rizzante@gmail.com>
This commit is contained in:
parent
1c908029ee
commit
5ff5b99fbc
2 changed files with 8 additions and 1 deletions
|
@ -8,7 +8,9 @@ metadata:
|
||||||
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
{{- include "ingress-nginx.labels" . | nindent 4 }}
|
||||||
app.kubernetes.io/component: controller
|
app.kubernetes.io/component: controller
|
||||||
name: {{ include "ingress-nginx.controller.fullname" . }}
|
name: {{ include "ingress-nginx.controller.fullname" . }}
|
||||||
|
{{- if .Values.controller.keda.scaledObject.annotations }}
|
||||||
|
annotations: {{ toYaml .Values.controller.keda.scaledObject.annotations | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
{{- if eq .Values.controller.keda.apiVersion "keda.k8s.io/v1alpha1" }}
|
{{- if eq .Values.controller.keda.apiVersion "keda.k8s.io/v1alpha1" }}
|
||||||
|
|
|
@ -315,6 +315,11 @@ controller:
|
||||||
pollingInterval: 30
|
pollingInterval: 30
|
||||||
cooldownPeriod: 300
|
cooldownPeriod: 300
|
||||||
restoreToOriginalReplicaCount: false
|
restoreToOriginalReplicaCount: false
|
||||||
|
scaledObject:
|
||||||
|
annotations: {}
|
||||||
|
# Custom annotations for ScaledObject resource
|
||||||
|
# annotations:
|
||||||
|
# key: value
|
||||||
triggers: []
|
triggers: []
|
||||||
# - type: prometheus
|
# - type: prometheus
|
||||||
# metadata:
|
# metadata:
|
||||||
|
|
Loading…
Reference in a new issue