WebSocket
개요
기본 설정
apiVersion: networking.istio.io/v1
kind: VirtualService
metadata:
name: websocket-service
spec:
hosts:
- ws.example.com
http:
- match:
- headers:
upgrade:
exact: websocket
route:
- destination:
host: websocket-service
---
apiVersion: networking.istio.io/v1
kind: DestinationRule
metadata:
name: websocket-service
spec:
host: websocket-service
trafficPolicy:
connectionPool:
tcp:
maxConnections: 1000
http:
http1MaxPendingRequests: 1000
idleTimeout: 3600s # 1시간Gateway 설정
모범 사례
참고 자료
마지막 업데이트