install-ingress.yml 424 B

12345678910111213141516171819
  1. ---
  2. apiVersion: networking.k8s.io/v1
  3. kind: Ingress
  4. metadata:
  5. name: services-ingress
  6. annotations:
  7. nginx.ingress.kubernetes.io/rewrite-target: /$2
  8. spec:
  9. ingressClassName: contour
  10. rules:
  11. - http:
  12. paths:
  13. - path: /frontend(/|$)(.*)
  14. pathType: Prefix
  15. backend:
  16. service:
  17. name: frontend-service
  18. port:
  19. number: 8080