httpbin-gateway.yaml 474 B

123456789101112131415161718192021222324252627282930
  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: Gateway
  3. metadata:
  4. name: httpbin-gateway
  5. spec:
  6. selector:
  7. istio: ingressgateway
  8. servers:
  9. - port:
  10. number: 80
  11. name: http
  12. protocol: HTTP
  13. hosts:
  14. - "*"
  15. ---
  16. apiVersion: networking.istio.io/v1alpha3
  17. kind: VirtualService
  18. metadata:
  19. name: httpbin
  20. spec:
  21. hosts:
  22. - "*"
  23. gateways:
  24. - httpbin-gateway
  25. http:
  26. - route:
  27. - destination:
  28. host: httpbin
  29. port:
  30. number: 8000