GPU-Live/gateway.yaml

39 lines
774 B
YAML

# Gateway.yaml
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: ssh2-gateway
namespace: default
spec:
# The selector matches the ingress gateway pod labels.
# If you installed Istio using Helm following the standard documentation, this would be "istio=ingress"
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: TCP
hosts:
- ssh2.nhngpuaas.com
---
# virtual-service.yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: test-2
namespace: default
spec:
hosts:
- "ssh2.nhngpuaas.com"
gateways:
- ssh2-gateway
tcp:
- match:
- port: 8080
route:
- destination:
port:
number: 2222
host: ssh-service-2