[Bug] failed to verify certificate
when using internal grafana
#1712
Labels
bug
Something isn't working
needs triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
Describe the bug
Since v5.13.0 grafana-operator is unable to connect to grafana internally. The operator seem to be using the wrong URL. Should be
grafana-service.grafana.svc
notgrafana-service.grafana
. The logs show the following errorWe downgraded to 5.12.0 which resolved the issue however the URL is still wrong. The reason why we get an error in 5.13 and not 5.12 is because the HTTP client no longer skips TLS verification due to a recent patch. The PR #1628 introduced the TLS block which which now no longer sets
InsecureSkipVerify
to true and causes connections to the wrong URL to fail.Version
v5.13.0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
status.adminUrl
whould behttps://grafana-service.grafana.svc:3000
nothttps://grafana-service.grafana:3000
Suspect component/Location where the bug might be occurring
https://github.com/grafana/grafana-operator/pull/1628/files#diff-6cdc29acf17bf0a9db52d78749fa9a849649cff43cfd3db067e1e4868d8c40caL22
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime (please complete the following information):
Additional context
operator logs
Grafana.yaml
The text was updated successfully, but these errors were encountered: