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

Eclipse Che Always points To Localhost instead of Docker Machine #9315

Closed
EriksonMurrugarra opened this issue Apr 2, 2018 · 7 comments
Closed
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@EriksonMurrugarra
Copy link

EriksonMurrugarra commented Apr 2, 2018

Description

I am running Eclipse che on Kubernetes. When the workspace is created I navigate to the servers tab and find that the client is always trying to connecto to 127.0.0.1 instead of my server IP Address.
I have configured the following variables: CHE_HOST, CHE_HOST_IP and CHE_DOCKER_MACHINE_HOST and It stills point to 127.0.01

Following is a picture:

image

In the POD logs:

image

@ghost
Copy link

ghost commented Apr 3, 2018

@EriksonMurrugarra how exactly did you deploy Che on Kubernetes? Can you share more details?

All of the envs you tried are for Che on Docker.

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label Apr 3, 2018
@EriksonMurrugarra
Copy link
Author

Hi @eivantsov.

I am using the following yaml file https://raw.githubusercontent.com/EriksonMurrugarra/eclipse-kube/master/che.yml . This yaml creates a StatefulSet instead of a Deployment.

@ghost
Copy link

ghost commented Apr 3, 2018

@sleshchenko do you have any clues?

@sleshchenko
Copy link
Member

sleshchenko commented Apr 4, 2018

CHE_DOCKER_MACHINE_HOST is used only for Docker infrastructure.

And 127.0.0.1 here is the host of created Ingress. There is no an ability to override hostname of ingresses. But there is an issue for it #9131

Or maybe this issue can be solved by ingress controller configuration.

@EriksonMurrugarra
Copy link
Author

Hi @sleshchenko.
How could I configure my ingress controller to solve it? Could you kindly share an example please?

@sleshchenko
Copy link
Member

@EriksonMurrugarra Sorry for a late response. Unfortunately, I have no idea how ingress controller can be configured.

I assume that single-host or multi-host (introduced in #9329) can help you.

@ghost
Copy link

ghost commented Sep 10, 2018

Closed due to inactivity. Feel free to reopen if the issue persists.

@ghost ghost closed this as completed Sep 10, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

2 participants