gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Configurating NGINX Ingress on Gitpod Self Hosted?

Open diessetechnology opened this issue 6 years ago • 5 comments

Hello, I'm trying Gitpod Self Hosted... I have a single node vanilla k8s cluster and I have deployed Gitpod Self Hosted successfully without errors... but now I'm confused because no NGINX Ingress has been generated (unlike Eclipse Che, that cloud ide generated automatically an ingress)... Assuming that the domain is called "mygitpoddomain.com" (naturally not my real domain), and I have correctly assigned a wildcard certificate on *.ws.mygitpoddomain.com and *.mygitpoddomain.com...how can I create the right NGINX Ingress?

I have opened the same issue on gitpod-io/self-hosted repo

diessetechnology avatar Dec 27 '19 09:12 diessetechnology

hi @diessetechnology!

Gitpod self-hosted creates a Kubernetes Service of type LoadBalancer. It's named 'proxy' and you should be able to see it when running kubectl get services.

See here for how to discover the IP address that got assigned to your LoadBalancer. That's the IP address your DNS should be pointing to.

It's true that Gitpod self-hosted so far does not create a resource of type ingress.

Let me know if this helps to get it running. In case you have more questions or feedback... don't hesitate to ask :)

meysholdt avatar Dec 29 '19 16:12 meysholdt

No Load Balancer, I have settled the property gitpod.components.proxy.loadBalancerIP to my ip (Is a single-node k8s cluster on a dedicated server)... I need to know the right ingress yaml for a domain....i no have clue on the ingress to create, and the documentation helped very little.

diessetechnology avatar Dec 29 '19 20:12 diessetechnology

Can you explain what you mean by "no Load Balancer"? Can your Kubernetes cluster not create services of type LoadBalancer?

What's the output when you run kubectl get services? It should look something like this:

NAME                                            TYPE           CLUSTER-IP    EXTERNAL-IP    PORT(S) 
dashboard                                       ClusterIP      10.0.1.1     <none>         3001/TCP
db                                              ClusterIP      10.0.1.2     <none>         3306/TCP
image-builder                                   ClusterIP      10.0.1.3      <none>         8080/TCP
proxy                                           LoadBalancer   10.0.10.59    34.83.1.1   80:31080/TCP,443:31443/TCP 

The EXTERNAL-IP of services with NAME proxy (here: 34.83.1.1) should be accessible publicly and without ingress.

Let me know if I'm missing something.

meysholdt avatar Dec 29 '19 21:12 meysholdt

No Load Balancer because i have a single node cluster on a dedicated server,so not on GCP,AWS,Azure or similar. So I can't create a LoadBalancer...I have setted the property gitpod.components.proxy.loadBalancerIP to my IP,but the problem is that. I have deployed successful many services without problem in this way...either Eclipse Che. I explicitly need to access via Ingress, so how can I create the right ingress?

diessetechnology avatar Dec 30 '19 00:12 diessetechnology

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 04 '20 14:10 stale[bot]