postfinance / kubenurse

Kubernetes network monitoring
MIT License
407 stars 39 forks source link

failed request for me_ingress with Get "<INGRESS_URL>/alwayshappy": unsupported protocol scheme "" #21

Closed bramvandenklinkenberg closed 3 years ago

bramvandenklinkenberg commented 3 years ago

I have deployed kubenurse with ArgoCD on an AKS cluster. For the Ingress Url I provided a HOST but no TLS. It all seems to be working. In the browser I can reach /alive, /alwayshappy (200 response) and /metrics. But the logs of the container show the error failed request for me_ingress with Get "kubenurse.rancher-canary-dev.k8s.digitaldev.nl/alwayshappy": unsupported protocol scheme "".

The ingress does not accept https:// in front of the ingress url.

No clue on what I am doing wrong here.

djboris9 commented 3 years ago

Hi @bramvandenklinkenberg

The environment variable KUBENURSE_INGRESS_URL needs a scheme. Either http:// or https:// before the URL. So http://kubenurse.rancher-canary-dev.k8s.digitaldev.nl/alwayshappy should be a valid one.

Can you try it this way or send your current KUBENURSE_INGRESS_URL and KUBENURSE_USE_TLS value.

-Boris

bramvdklinkenberg commented 3 years ago

Hi @djboris9 ,

thanks for the reply! I was doing it wrong with the argocd template. passing the KUBENURSE_INGRESS_URL without the https indeed and with adding the tls part combined with the kubenurse insecure env it works now. thanks!