I have a problem when creating an ingress to expose services running on the GKE cluster, my problem is that the path services that I configured are not pointing to the correct url like the following example :
/customer
# my expectation is to http://[customerapp-service]/
# instead of http://[customerapp-service]/customer
/supplier
# my expectation is to http://[supplierapp-service]/
# instead of http://[supplierapp-service]/supplier
this is the yaml file for ingress that I created :
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: saas-ingress
annotations:
kubernetes.io/ingress.class: "gce"
kubernetes.io/ingress.allow-http: "true"
spec:
rules:
- http:
paths:
- path: /customer
pathType: ImplementationSpecific
backend:
service:
name: customerapp-service
port:
number: 9001
- path: /supplier
pathType: ImplementationSpecific
backend:
service:
name: supplierapp-service
port:
number: 9000
i have tried to change pathType to Prefix instead of ImplementationSpecific but still not solve my problem