Kubernetes' Ingress abstraction does what you want. On Wed, May 16, 2018 at 6:38 PM Jonathan Mejias <drumber...@gmail.com> wrote:
> Im using kubernetes to deploy apps, how can i create that virtual host > into a container cluster? > > On Wed, May 16, 2018, 19:36 'Tim Hockin' via Kubernetes user discussion > and Q&A <kubernetes-users@googlegroups.com> wrote: > >> HTTP gives you a much better solution - virtual hosts. >> >> The 'host' header tells your HTTP ingress which logical service to access. >> >> e.g. `curl -h 'host: foo.com' http://210.210.210.22:80/` >> <http://210.210.210.22:80/> is different than `curl -h 'host: bar.com' >> http://210.210.210.22:80/` <http://210.210.210.22:80/> >> >> On Wed, May 16, 2018 at 1:19 PM Jonathan Mejías <drumber...@gmail.com> >> wrote: >> >>> Hi >>> >>> How do i to create a HTTP load balancer with kubernetes ingress? >>> >>> Example: >>> >>> SVC-1 . ------ 210.210.210.22:*80 (internet)* >>> SVC-2 . ------ 210.210.210.22:*81 (internet)* >>> SVC-3 . ------ 210.210.210.22:*82 (internet)* >>> >>> services created in type NodePort, but what are the definitios for >>> ingress.yaml file? >>> >>> I don't want to use paths, because my services have dynamic endpoints, >>> and additional paths responses with 404. So i want to define by port range. >>> >>> how can i do that? >>> >>> Regards >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Kubernetes user discussion and Q&A" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to kubernetes-users+unsubscr...@googlegroups.com. >>> To post to this group, send email to kubernetes-users@googlegroups.com. >>> Visit this group at https://groups.google.com/group/kubernetes-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Kubernetes user discussion and Q&A" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to kubernetes-users+unsubscr...@googlegroups.com. >> To post to this group, send email to kubernetes-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/kubernetes-users. >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Kubernetes user discussion and Q&A" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to kubernetes-users+unsubscr...@googlegroups.com. > To post to this group, send email to kubernetes-users@googlegroups.com. > Visit this group at https://groups.google.com/group/kubernetes-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group. To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-users+unsubscr...@googlegroups.com. To post to this group, send email to kubernetes-users@googlegroups.com. Visit this group at https://groups.google.com/group/kubernetes-users. For more options, visit https://groups.google.com/d/optout.