GPU-Live/sample/tcp-istio-test/gateway.yaml

37 lines
592 B
YAML

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: ssh2-gateway
namespace: org1
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 30333
name: tcp-30333
protocol: TCP
hosts:
- proxy.gpulive.nhncloud.com
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: test-2
namespace: org1
spec:
hosts:
- "proxy.gpulive.nhncloud.com"
gateways:
- ssh2-gateway
tcp:
- match:
- port: 30333
route:
- destination:
host: ssh-service
port:
number: 2222