gateway
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: ks-gateway
spec:
selector:
istio: ingressgateway # use Istio default gateway implementation
servers:
# - port:
# number: 80
# name: http
# protocol: HTTP
# hosts:
# - "ks.hyunsoft.xyz"
# - "*"
- port:
number: 443
name: https
protocol: HTTPS
tls:
credentialName: "hyunsoft-tls-star"
mode: SIMPLE
hosts:
- "ks.hyunsoft.xyz"
- "*"
virtualservice 1
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: ks-console
spec:
hosts:
- "ks.hyunsoft.xyz"
gateways:
- ks-gateway
http:
- match:
# - uri:
# prefix: /status
# - uri:
# prefix: /delay
route:
- destination:
port:
number: 80
host: ks-console
virtualservice 2
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: nginx2
spec:
hosts:
- "nginx2.hyunsoft.xyz"
gateways:
- kubesphere-system/ks-gateway
http:
- match:
# - uri:
# prefix: /status
# - uri:
# prefix: /delay
route:
- destination:
port:
number: 80
host: nginx2
728x90
댓글