apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: jfrog-artifactory-pro-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "artifactory.hyxfjr.com"
- port:
number: 8081
name: tcp
protocol: TCP
hosts:
- "artifactory.hyxfjr.com"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: jfrog-artifactory-pro-vs
spec:
hosts:
- "artifactory.hyxfjr.com"
gateways:
- jfrog-artifactory-pro-gateway
http:
- match:
- port: 80
route:
- destination:
host: jfrog-artifactory-pro
port:
number: 8081
tcp:
- match:
- port: 8081
route:
- destination:
host: jfrog-artifactory-pro
port:
number: 8081