Guest User

Istio

a guest
Nov 15th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.79 KB | None | 0 0
  1. apiVersion: networking.istio.io/v1alpha3
  2. kind: Gateway
  3. metadata:
  4.   name: hello-istio-gateway
  5.   namespace: istio-system
  6. spec:
  7.   selector:
  8.     istio: ingressgateway  # use Istio default gateway implementation
  9.   servers:
  10.     - port:
  11.         number: 13452
  12.         name: http
  13.         protocol: HTTP
  14.       hosts:
  15.        - "hello-istio.domain"
  16. ---
  17. apiVersion: networking.istio.io/v1alpha3
  18. kind: VirtualService
  19. metadata:
  20.   name: hello-istio-vs
  21.   namespace: istio-system
  22. spec:
  23.   hosts:
  24.    - "hello-istio.domain"
  25.   gateways:
  26.    - hello-istio-gateway.istio-system.svc.cluster.local
  27.   http:
  28.     - match:
  29.         - uri:
  30.             prefix: /
  31.       route:
  32.         - destination:
  33.             port:
  34.               number: 13451
  35.             host: hello-istio.hello-istio.svc.cluster.local
Add Comment
Please, Sign In to add comment