ingress.yaml 697 B

123456789101112131415161718192021222324252627
  1. # deploy this ingress with kubectl:
  2. # kubectl apply -f ingress.yaml --namespace NAMESPACE_NAME
  3. apiVersion: networking.k8s.io/v1
  4. kind: Ingress
  5. metadata:
  6. name: graphql-ingress
  7. # From example at: https://kubernetes.github.io/ingress-nginx/examples/rewrite/
  8. annotations:
  9. nginx.ingress.kubernetes.io/rewrite-target: /$2
  10. spec:
  11. rules:
  12. - http:
  13. paths:
  14. - pathType: Prefix
  15. path: /server(/|$)(.*)
  16. backend:
  17. service:
  18. name: graphql-server
  19. port:
  20. name: port-1
  21. - pathType: Prefix
  22. path: /indexer(/|$)(.*)
  23. backend:
  24. service:
  25. name: indexer
  26. port:
  27. name: port-1