★ wanayoo — archive 1999 https://github.com/devspace-cloud/devspace-cloud/issues/13Nouvelle recherche | Portail wanayoo
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

Non TLS deployments should still use the domain for the ingress. #13

Open
KaelBaldwin opened this issue Oct 11, 2019 · 3 comments
Open

Non TLS deployments should still use the domain for the ingress. #13

KaelBaldwin opened this issue Oct 11, 2019 · 3 comments
Assignees

Comments

@KaelBaldwin
Copy link
Contributor

@KaelBaldwin KaelBaldwin commented Oct 11, 2019

running:
devspace run deploy-devspace-cloud-no-tls

Currently 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.

@FabianKramm
Copy link
Member

@FabianKramm FabianKramm commented Oct 14, 2019

@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 devspace run deploy-devspace-cloud-no-tls --var DOMAIN=my-domain.com

@KaelBaldwin
Copy link
Contributor Author

@KaelBaldwin KaelBaldwin commented Oct 14, 2019 •

@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.

@LukasGentele
Copy link
Member

@LukasGentele LukasGentele commented Oct 14, 2019 •

@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 deploy-devspace-cloud-no-tls to deploy-devspace-cloud-local and additionally add a variable for TLS true/false that is set to false automatically for deploy-devspace-cloud-local and will be a question during the regular deploy-devspace-cloud0?

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.

@LukasGentele LukasGentele self-assigned this Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.