Guest User

Untitled

a guest
Dec 9th, 2020
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ---
  2. apiVersion: networking.istio.io/v1alpha3
  3. kind: VirtualService
  4. metadata:
  5. name: example-serve
  6. namespace: "test"
  7. spec:
  8. hosts:
  9. - "example.com"
  10. gateways:
  11. - test/gateway
  12. http:
  13. - match:
  14. - uri:
  15. prefix: /scripts
  16. rewrite:
  17. uri: "/"
  18. route:
  19. - destination:
  20. port:
  21. number: 8080
  22. host: example-serve
  23. subset: v1
  24. corsPolicy:
  25. allowOrigins:
  26. - exact: "cors-host"
  27. allowCredentials: true
  28. allowMethods:
  29. - GET
  30. - OPTIONS
  31. - POST
  32. allowHeaders:
  33. - Authorization
  34. - Content-Type
Advertisement
Add Comment
Please, Sign In to add comment