Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
When applying the yaml file to the ingress services a load balancer is created. I pointed my DNS domain to that load balancer IP and it reaches the nginx server. However when routing to https://www.mydomain.com/api/users/ or https://www.mydomain.com/api/users/currentuser/ it returns a 404 page. Here is the Ingress-Nginx yaml file I'm using:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-service
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:
- host: www.mydomain.com
http:
paths:
- path: /api/users/
pathType: Prefix
backend:
service:
name: be-auth-srv
port:
number: 9001
- path: /auth/
pathType: Prefix
backend:
service:
name: be-contact-form-srv
port:
number: 9000
Anybody can shed light on this topic? Thanks
Hello @Manel Castro
There could many reasons why your Ingress does not work as expected
be-auth-srv
apiVersion: v1
kind: Service
metadata:
name: be-auth-srv
spec:
selector:
app: be-auth-app
ports:
- protocol: TCP
port: 9001
targetPort: 8080
be-auth-srv
and be-contact-form-srv
exist in the same namespace as your Ingress controllernginx.ingress.kubernetes.io/use-regex: "true"
**as your paths seem to be static