Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-useTreafik and -forceHTTPwithTraefik don't play well together #3272

Open
KristofKlein opened this issue Dec 14, 2023 · 0 comments
Open

-useTreafik and -forceHTTPwithTraefik don't play well together #3272

KristofKlein opened this issue Dec 14, 2023 · 0 comments
Assignees

Comments

@KristofKlein
Copy link

KristofKlein commented Dec 14, 2023

I can start a traefik container with -forceHTTPwithTraefik. I can also tell the container a certificate such that it offers services with https...

If I now add a BC Container to it ( using -useTraefik) it identifies the cases with the forceHTTP and the container will not come around with a certificate and will not flip to https ... which I expected. And is fine.

But what it will not do: show up in traefik. And this because the container gets in unhealthy state. And unhealthy will not be promoted into traefik.
So why unhealthy? well, again what I expected, navcontainerhelper copies into the my-run folder a different CheckHealth.ps1....but this check now wants to use https://localhost/ which will of course not work :)

I am curious around this checkHealth thing anyway why two files and copy arounds (maybe some legacy?) ...why not simply stick to one script and make use of the "useSSL" env ? is it set: https, if not http ?! Or, if you want to go nuts, check both? :D there is already a get-service fallback in the "normal" checkHealth.ps1... so why not https, http, service ?

and yes I am aware of the "donotcheckhealth" ... but I like this check :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants