Skip to content

Make the operator gRPC metrics service port configurable#881

Open
somaz94 wants to merge 1 commit into
kedacore:mainfrom
somaz94:feat/configurable-metrics-service-port
Open

Make the operator gRPC metrics service port configurable#881
somaz94 wants to merge 1 commit into
kedacore:mainfrom
somaz94:feat/configurable-metrics-service-port

Conversation

@somaz94

@somaz94 somaz94 commented Jun 22, 2026

Copy link
Copy Markdown

This makes the operator's gRPC Metrics Service port (hardcoded 9666) configurable via a new operator.metricsServiceTargetPort value (default 9666). It wires the existing core --metrics-service-bind-address flag and updates every reference to the port: the operator args and containerPort, the operator Service, the metrics server --metrics-service-address connect arg, and both NetworkPolicies.

Resolves #511 (deploying KEDA into restrictive environments that only allow a fixed set of ports, e.g. AKS policy where 9666 is not permitted).

The default stays 9666, so existing installs render identically apart from the now-explicit --metrics-service-bind-address=:9666 arg.

Validation (local):

  • helm lint passes.
  • Default helm template render is unchanged except the explicit --metrics-service-bind-address=:9666 arg; all ports stay 9666.
  • With a custom port, all six references render the custom value, no 9666 left.
  • kind v1.34 install with operator.metricsServiceTargetPort=9777: operator binds :9777, metrics-server logs "Connection to KEDA Metrics Service gRPC server has been successfully established ...:9777", and the external.metrics.k8s.io APIService reports Available.

@somaz94 somaz94 force-pushed the feat/configurable-metrics-service-port branch from e1cc0a1 to da75a93 Compare June 22, 2026 09:08
Signed-off-by: somaz <genius5711@gmail.com>
@somaz94 somaz94 force-pushed the feat/configurable-metrics-service-port branch from da75a93 to e881f45 Compare June 23, 2026 09:46
@somaz94 somaz94 marked this pull request as ready for review June 24, 2026 01:28
@somaz94 somaz94 requested review from a team as code owners June 24, 2026 01:28
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.

Allow Change of Operator Port

1 participant