Replies: 8 comments 3 replies
-
@Sampozzo You do not need to create a new LB service as you did above. Just use a ClusterIP service, and create an Ingress definition to point to it. That way it will use the LB that is already deployed and connected to your ingress controller, either nginx or traefik. Btw, I highly recommend your ask chat.openai.com for help on this, it's extremely good at writing kubernetes manifest. But also read on Kubenetes Ingress definitions, and see some of the many great youtube videos on that. |
Beta Was this translation helpful? Give feedback.
-
@mysticaltech thank you very much, and sorry again. 😊 |
Beta Was this translation helpful? Give feedback.
-
Thanks @gefloh, I'm reading two kubernetes books, a lot of documentation online, i did some tests on my local network but now I'm stuck in a similar production env like this on hetzner with load balancer. |
Beta Was this translation helpful? Give feedback.
-
@mysticaltech yes thanks!!! Here is the complete example if anyone in the future need it.
|
Beta Was this translation helpful? Give feedback.
-
@maggie44 no, i use the default traefik loadbalancer, the yaml i posted in my last message is working for me. Maybe you are accessing the LB by the IP, and it give you 404. You have to configure a dns name with the info in the ingress spec of the yaml to have it working (my.test.domain in the example) |
Beta Was this translation helpful? Give feedback.
-
I took it all down and started up again with NGINX and all worked fine. Took it back down again and back up with Traefik, used the exact same yaml files and now it's not working again. Maybe something to do with the TLS certificates, does Traefik try and do something clever? I guess there is a parallel question here on the advantages of Traefik over NGINX? |
Beta Was this translation helpful? Give feedback.
-
I'm not an Expert, I'm learning kubernetes now, so i can't help sorry. I only can say that in my tests i used a domain proxied by cloudflare, so the certificate part is managed by cloudflare and not on kubernetes. |
Beta Was this translation helpful? Give feedback.
-
Turns out the Cloudflare TLS setting was on |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, thank you for this great tool!
I'm studying those days kubernetes and found this great tool, but i'm a little confused about the load balancer, sorry if i ask a so simple question, i hope you can understand.
I'm running this really simple test.yaml, it works but it start a new load balancer only for it. By what i understand, i can use the already available LB, but i can't understand how.
Can you please help me?
Thank you very much and sorry!
Beta Was this translation helpful? Give feedback.
All reactions