# istio-virtual-service.yaml
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: ncsc-vs
namespace: app
spec:
hosts:
- "*"
gateways:
- istio-system/my-app-gateway
http:
- match:
- port: 8080 # 8080 포트로 오는 요청 매칭
route:
- destination:
host: ncsc-svc.app.svc.cluster.local
port:
number: 8080 # NodePort 서비스에서 지정한 포트