# VirtualService — Gateway로 들어온 httpbin.example.com 트래픽의 라우팅 규칙. # host/path 분기 검증: /status/* 와 그 외(/) 를 같은 백엔드로 보내되 path match 동작 확인. apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: httpbin namespace: mesh-test spec: hosts: - "httpbin.example.com" gateways: - httpbin-gateway # 이 VS가 위 Gateway에 바인딩됨 (mesh 내부용 아님) http: # path prefix 분기 예시 — /status 로 시작하면 명시 매칭(로그/디버깅 구분용) - match: - uri: prefix: /status route: - destination: host: httpbin.mesh-test.svc.cluster.local port: number: 8000 # 그 외 전체 → 동일 백엔드 (catch-all) - route: - destination: host: httpbin.mesh-test.svc.cluster.local port: number: 8000