I'm working to recreate the SmartHotel360 demo in Azure Kubernetes Service but it seems like the ingress controller isn't working.
Here's what a working example should look like (redirect hotels service to /hotels-api): http://sh360production.2c3abf6edd44497688b2.westus.aksapp.io/hotels-api/
But when I deploy my website, it redirects /hotels-api to a blank webpage, which is how I suspected that something was breaking in the Ingress Controller. http://23.96.16.121/hotels-api.
From the docs that I was reading about the ingress controller, I deployed the service using kubectl apply -f ingress.yaml. I can see in the Ingresses page in the K8s UI that all of the services have the same external IP address and the ingress service is under Services, but I don't see anything else. I deployed all of the backend services using helm and it looks like they also show up in the UI.
The ingress.yaml file looks like:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
labels:
app: sh360
component: frontend
name: sh360-ingress
annotations:
kubernetes.io/ingress.class: addon-http-application-routing
ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
rules:
- host: swsmarthotel360-409bbcc0.hcp.eastus.azmk8s.io
http:
paths:
- path: /hotels-api
backend:
serviceName: helm-test2-hotels-sh360-hotels
servicePort: 80
- path: /bookings-api
backend:
serviceName: bookings
servicePort: 80
- path: /suggestions-api
backend:
serviceName: suggestions
servicePort: 80
Since I'm new to AKS and Kubernetes, is there something missing in the ingress.yaml file that will redirect to services?
(full reference: https://github.com/Microsoft/SmartHotel360-AKS-DevSpaces-Demo)