-
Notifications
You must be signed in to change notification settings - Fork 544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KEDA autoscaling additional requirement #10266
base: main
Are you sure you want to change the base?
Conversation
b615cd0
to
2eb4f0b
Compare
The CHANGELOG has just been cut to prepare for the next release. Please rebase |
2eb4f0b
to
59b30d1
Compare
59b30d1
to
2eb4f0b
Compare
2eb4f0b
to
6740b19
Compare
ok rebased it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should fix the usage of the unsafeSsl flag
{{- $mem_request := dig "requests" "memory" nil .Values.distributor.resources }} | ||
threshold: {{ mulf (include "mimir.siToBytes" (dict "value" $mem_request)) (divf .Values.distributor.kedaAutoscaling.targetMemoryUtilizationPercentage 100) | floor | int64 | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assume this should actually be unsafeSsl
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
serverAddress: {{ include "mimir.kedaPrometheusAddress" (dict "ctx" $) }} | ||
threshold: {{ $autoscaling.querySchedulerInflightRequestsThreshold | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
{{- $mem_request := dig "requests" "memory" nil .Values.query_frontend.resources }} | ||
threshold: {{ mulf (include "mimir.siToBytes" (dict "value" $mem_request)) (divf .Values.query_frontend.kedaAutoscaling.targetMemoryUtilizationPercentage 100) | floor | int64 | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
threshold: {{ .Values.ruler_querier.kedaAutoscaling.querySchedulerInflightRequestsThreshold | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
serverAddress: {{ include "mimir.kedaPrometheusAddress" (dict "ctx" $) }} | ||
{{- $cpu_request := dig "requests" "cpu" nil .Values.ruler_query_frontend.resources }} | ||
threshold: {{ mulf (include "mimir.cpuToMilliCPU" (dict "value" $cpu_request)) (divf .Values.ruler_query_frontend.kedaAutoscaling.targetCPUUtilizationPercentage 100) | floor | int64 | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
serverAddress: {{ include "mimir.kedaPrometheusAddress" (dict "ctx" $) }} | ||
{{- $mem_request := dig "requests" "memory" nil .Values.ruler_query_frontend.resources }} | ||
threshold: {{ mulf (include "mimir.siToBytes" (dict "value" $mem_request)) (divf .Values.ruler_query_frontend.kedaAutoscaling.targetMemoryUtilizationPercentage 100) | floor | int64 | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
{{- $cpu_request := dig "requests" "cpu" nil .Values.ruler.resources }} | ||
threshold: {{ mulf (include "mimir.cpuToMilliCPU" (dict "value" $cpu_request)) (divf .Values.ruler.kedaAutoscaling.targetCPUUtilizationPercentage 100) | floor | int64 | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
{{- $mem_request := dig "requests" "memory" nil .Values.ruler.resources }} | ||
threshold: {{ mulf (include "mimir.siToBytes" (dict "value" $mem_request)) (divf .Values.ruler.kedaAutoscaling.targetMemoryUtilizationPercentage 100) | floor | int64 | quote }} | ||
{{- if .Values.kedaAutoscaling.customHeaders }} | ||
customHeaders: {{ (include "mimir.lib.mapToCSVString" (dict "map" .Values.kedaAutoscaling.customHeaders)) | quote }} | ||
{{- end }} | ||
ignoreNullValues: {{ .Values.kedaAutoscaling.ignoreNullValues }} | ||
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafeSsl: {{ .Values.kedaAutoscaling.ignoreNullValues }} | |
unsafeSsl: {{ .Values.kedaAutoscaling.unsafeSsl }} |
@bjorns163 @tacole02 Any chance of this getting merged in soon? I was looking for this the authentication feature |
What this PR does
I've been testing the KEDA autoscaling option on my environment and was missing some fields to get this working.
The missing fields, authentication and label filters that were needed I've added.
Which issue(s) this PR fixes or relates to
Fixes #10265