Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNon TLS deployments should still use the domain for the ingress. #13
Comments
|
@KaelBaldwin thanks for opening this issue! We omit the domain name when deploying without tls so that devspace cloud accepts incoming connections from all hosts (*). If you want to restrict devspace cloud to only listen on a special domain you can run |
|
@FabianKramm OK, I see what you are saying. I could see how this would be good on a cluster devoted to devspace, but in our cluster, I'm using devspace alongside other deployments with their own ingresses and domains directly pointing to them. My expectation in a no-tls option was that it would just disable the tls aspect, not ignore the domain that I had explicitly defined earlier via the prompt at run time. I'm not 100% sure on the priority of nginx-ingress. If a path is specified and no host, will it take priority over an ingress that has a host defined but just a '/' path? If it does, this could cause traffic expected to go to the explicit domain to go to devspace-cloud instead. Even if traffic doesn't get redirected, I think this is a little counter-intuitive, but that's just my opinion. I've closed my PR and feel free to close this if you would like. |
|
@KaelBaldwin I agree: the current solution is not very intuitive and having an ingress without a hostname is indeed not ideal if there is anything else running within the same cluster. I believe @FabianKramm wanted to have a good user experience for users that are evaluating DevSpace Cloud in local cluster like minikube and he wanted to skip the question because it likely does not matter and is ok to listen on all hostnames when using a local cluster. Maybe we should rename If I see a thumbs up from both of you, I will restructure this and update the README accordingly. If any of you see a problem with my proposed solution, let me know. |
running:
devspace run deploy-devspace-cloud-no-tlsCurrently sets
--var DOMAIN=""and I'm not sure why, but it's causing the ingress to have no host value.I'll create a PR to fix this momentarily.