Kubernetes Ingress controllers for wildcard url mapping

0 votes

I have many users for the cluster. I'm trying to set something where all the users can access a specific custom url.

I'm looking for ingress controller configuration, something like this:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
 name: test
spec:
 rules:
 - host: *.bar.com
   http:
     paths:
     - path: /{{ value of * in * .bar.com }}
       backend:
         serviceName: {{value of * in *.bar.com }}Svc
         servicePort: 80
Sep 10, 2018 in Kubernetes by lina
• 8,220 points
2,776 views

1 answer to this question.

0 votes

If you use the stock controllers you will be able to switch on hostname and go to different backends services.

You'll have to design your own ingress controller that writes out an nginx config that uses $http_host in the appropriate proxy_pass or redirect lines. 

Try this and let me know if it works.

answered Sep 10, 2018 by Kalgi
• 52,360 points

Related Questions In Kubernetes

0 votes
1 answer

Forcing ssl for Kubernetes Ingress on GKE

https://github.com/kubernetes/ingress-gce#frontend-https If you want to block http, you ...READ MORE

answered Sep 6, 2018 in Kubernetes by ajs3033
• 7,300 points
3,953 views
0 votes
1 answer

Defining a fallback service for Kubernetes ingress

For the Nginx Ingress Controller there is ...READ MORE

answered Sep 11, 2018 in Kubernetes by Kalgi
• 52,360 points
2,081 views
0 votes
1 answer

Disable SSL redirect for Kubernetes NGINX ingress

Adding ingress.kubernetes.io/ssl-redirect: "false" to annotations will disable the SSL redirect: apiVersion: extensions/v1beta1 kind: ...READ MORE

answered Sep 12, 2018 in Kubernetes by Kalgi
• 52,360 points
6,884 views
0 votes
1 answer

Kubernetes ingress for leader follower system

you can use a traefik backend health ...READ MORE

answered Oct 1, 2018 in Kubernetes by Kalgi
• 52,360 points
611 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
14,523 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 5,977 views
0 votes
2 answers

single point of entry for multiple services in kubernetes ingress

I tried having something similar too. Deployment apiVersion: extensions/v1beta1 kind: ...READ MORE

answered Sep 7, 2018 in Kubernetes by Hannah
• 18,570 points
2,305 views
0 votes
1 answer

ingress for kubernetes wordpress

You can configure your ingress to forward ...READ MORE

answered Sep 7, 2018 in Kubernetes by Kalgi
• 52,360 points
1,777 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP