Skip to content

ability to disable metrics server deployment#819

Merged
wozniakjan merged 2 commits into
kedacore:mainfrom
zroubalik:dms
Mar 18, 2026
Merged

ability to disable metrics server deployment#819
wozniakjan merged 2 commits into
kedacore:mainfrom
zroubalik:dms

Conversation

@zroubalik

Copy link
Copy Markdown
Member

Ability to not install Metrics Server - for example for users that want to use only ScaledJobs and are not insterested in ScaledObjects scaling.

Checklist

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Helm value to optionally disable deploying KEDA’s metrics server (and related external metrics API resources), intended for users who only need ScaledJobs.

Changes:

  • Introduces metricsServer.enabled (default true) in chart values and documents it in the README.
  • Wraps all metrics-server related templates (APIService, Deployment, Service, RBAC, monitors, network policies, PDB) with metricsServer.enabled.
  • Adds/updates vendored packaged chart tarballs under kedify-agent/charts/.

Reviewed changes

Copilot reviewed 14 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
keda/values.yaml Adds metricsServer.enabled value (default true).
keda/README.md Documents the new metricsServer.enabled setting.
keda/templates/metrics-server/apiservice.yaml Gates APIService creation on metricsServer.enabled.
keda/templates/metrics-server/deployment.yaml Gates metrics server Deployment on metricsServer.enabled.
keda/templates/metrics-server/service.yaml Gates metrics server Service on metricsServer.enabled.
keda/templates/metrics-server/serviceaccount.yaml Gates metrics server ServiceAccount on metricsServer.enabled.
keda/templates/metrics-server/clusterrole.yaml Gates metrics server ClusterRole on metricsServer.enabled.
keda/templates/metrics-server/clusterrolebinding.yaml Gates metrics server RBAC bindings on metricsServer.enabled.
keda/templates/metrics-server/networkpolicy.yaml Gates k8s NetworkPolicy on metricsServer.enabled.
keda/templates/metrics-server/ciliumnetworkpolicy.yaml Gates CiliumNetworkPolicy on metricsServer.enabled.
keda/templates/metrics-server/poddisruptionbudget.yaml Gates PDB on metricsServer.enabled.
keda/templates/metrics-server/podmonitor.yaml Gates PodMonitor on metricsServer.enabled.
keda/templates/metrics-server/servicemonitor.yaml Gates ServiceMonitor on metricsServer.enabled.
keda/templates/manager/deployment.yaml Adjusts operator arg --enable-cert-rotation to consider metrics server enabled.
kedify-agent/charts/kedify-predictor-v0.0.1.tgz Adds vendored packaged chart artifact.
kedify-agent/charts/keda-add-ons-http-v0.11.0-0.tgz Adds vendored packaged chart artifact.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread keda/templates/manager/deployment.yaml Outdated
Comment thread keda/templates/manager/deployment.yaml Outdated

@JorTurFer JorTurFer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you have committed unexpected files xD

Signed-off-by: Jan Wozniak <[email protected]>
@wozniakjan wozniakjan merged commit bfe874b into kedacore:main Mar 18, 2026
28 checks passed
zroubalik pushed a commit that referenced this pull request May 27, 2026
…852)

PR #819 added .Values.metricsServer.enabled to the --enable-cert-rotation
gate, which means setting metricsServer.enabled=false also disables cert
rotation for the operator and admission webhooks. The kedaorg-certs secret
is then never created, leaving the operator crashlooping on missing
/certs/ca.crt and webhooks stuck in ContainerCreating.

Restore the pre-#819 expression so cert rotation is gated only on
autoGenerated and !certManager.enabled, independent of the metrics server.

Fixes #849

Signed-off-by: John Zammit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants