apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /$2
  name: bookinfo-uat-ratings
  namespace: student100-bookinfo-uat
spec:
  rules:
  - host: bookinfo.uat.opsta.net
    http:
      paths:
      - path: /student100/ratings(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: bookinfo-uat-ratings
            port:
              number: 8080