Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upKubernetes ingress discovery sets invalid scheme #4327
Comments
This comment has been minimized.
This comment has been minimized.
|
@nailgun thanks for the report, would be appreciated if you have the time to open a PR with a a unit test? |
This comment has been minimized.
This comment has been minimized.
|
Yes, maybe on weekend |
This comment has been minimized.
This comment has been minimized.
|
Appreciated |
nailgun
referenced this issue
Jul 1, 2018
Merged
discovery/kubernetes/ingress: fix TLS discovery #4329
This comment has been minimized.
This comment has been minimized.
|
Here it is. @krasi-georgiev is it better to fix it in same PR/branch or create another one? |
This comment has been minimized.
This comment has been minimized.
|
I thought it it better to do it in the same PR. PR has been updated. |
brancz
closed this
in
e2baf89
Jul 5, 2018
mknapphrt
added a commit
to mknapphrt/prometheus
that referenced
this issue
Jul 26, 2018
gouthamve
added a commit
to gouthamve/prometheus
that referenced
this issue
Aug 1, 2018
jacksontj
added a commit
to jacksontj/prometheus
that referenced
this issue
Aug 14, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
nailgun commentedJun 29, 2018
Bug Report
What did you do?
I have a single ingress object with multiple backends. One is https, second is http.
What did you expect to see?
api.smp.io - httpS
smp.ingress.svc.cluster.local - http
Ingress controller (in my case - nginx) works this way.
What did you see instead? Under which circumstances?
Prometheus sets
__meta_kubernetes_ingress_schemeto https for both backends.Environment
Resolution
I found issue here
prometheus/discovery/kubernetes/ingress.go
Lines 179 to 194 in 6eab4bb
Actually it should check if
rule.Hostis in one ofingress.Spec.TLSconfigs.I'm going to send a PR if project maintainer will confirm that this should be fixed. For now I just override
__meta_kubernetes_ingress_schemein config: