Welcome! Log In Create A New Profile

Advanced

nginx controller

Posted by picasso100 
nginx controller
September 29, 2021 01:12AM
I setup nginx controller following the tutorial on https://www.youtube.com/watch?v=ROa2OLWqsMI
It was simple and straight forward.
My issue is that when I the enter the url (configured in the controller) to test routing
(http://frontend.20.69.87.150.nip.io/webapp1) the browser opens a new tab with correct name of the target page but it does not display anything.

yaml file
***********************************************
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: webapp-ingress
namespace: app
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- http:
paths:
- backend:
serviceName: webapp1-svc
servicePort: 80
path: /webapp1(/|$)(.*)
- backend:
serviceName: webapp2-svc
servicePort: 80
path: /webapp2(/|$)(.*)
- host: frontend.20.69.87.150.nip.io # change the IP address here
http:
paths:
- backend:
serviceName: webapp1-svc
servicePort: 80
path: /webapp1
- backend:
serviceName: webapp2-svc
servicePort: 80
path: /webapp2
**********************************************************
Tried different browsers with same result.
Any suggestions are greatly appreciated
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready