Error while disabling TLS in server, setting secure-port = 0 throws error #637
Labels
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened?:
We are trying to disable TLS on prom-adapter server so that it listens on plaintext http port. We want istio sidecar to manage TLS. But when settting secure-port=0, we get error:
F0124 08:10:49.144671 1 config.go:541] cannot derive external address port without listening on a secure port.
What did you expect to happen?:
We expected that setting secure-port = 0 will disable TLS on prom adapter server. As per documentation,
--secure-port int The port on which to serve HTTPS with authentication and authorization. If 0, don't serve HTTPS at all. (default 443)
Please provide the prometheus-adapter config:
prometheus-adapter config
Please provide the HPA resource used for autoscaling:
HPA yaml
Please provide the HPA status:
Please provide the prometheus-adapter logs with -v=6 around the time the issue happened:
prometheus-adapter logs
│ I0124 08:10:49.144412 1 requestheader_controller.go:244] Loaded a new request header values for RequestHeaderAuthRequestController │ │ F0124 08:10:49.144671 1 config.go:541] cannot derive external address port without listening on a secure port.Anything else we need to know?:
Environment:
kubectl version
): Client -> v1.23.17 Server-> v1.24.17The text was updated successfully, but these errors were encountered: