VictoriaMetrics / operator

Kubernetes operator for Victoria Metrics
Apache License 2.0
403 stars 141 forks source link

AsURL always uses HTTP URLs #994

Closed naveenbharadwaj-nc closed 1 day ago

naveenbharadwaj-nc commented 1 week ago

Hi,

In every *_types.go, the implementation of AsURL() function returns HTTP URL. return fmt.Sprintf("http://%s.%s.svc:%s", cr.PrefixedName(), cr.Namespace, port)

I'm trying to configure TLS between victoriametrics components which means all components must be accessed via HTTPS. For example, VMAuth must invoke https://vmsingle-.... However, because of hard-coding of http, VMAuth cannot proxy requests to other components. I get following error.

remoteAddr: "10.130.252.154:59080, X-Forwarded-For: 10.230.17.71"; requestURI: /; cannot proxy the request to http://vmsingle-k8s.svc:8429: read tcp 10.130.252.164:33032->172.30.133.124:8429: read: connection reset by peer

Please fix this if its a bug or advise any work arounds.

Haleygo commented 1 day ago

Protocol check is included in v0.46.0, close as completed. Feel free to reopen if there are further questions.