apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata: name: harbor-gateway namespace: harbor spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - registry.gpulive.nhncloud.com - port: number: 443 name: https protocol: HTTPS tls: mode: SIMPLE credentialName: gpulive-new-ssl # 반드시 istio-system namespace에 존재해야 함 hosts: - registry.gpulive.nhncloud.com --- apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: name: harbor-virtualservice namespace: harbor spec: hosts: - registry.gpulive.nhncloud.com gateways: - harbor-gateway http: - match: - uri: exact: /v2/ - uri: prefix: /v2/ - uri: prefix: /api/ - uri: prefix: /service/ - uri: prefix: /chartrepo/ - uri: prefix: /c/ route: - destination: host: harbor-core.harbor.svc.cluster.local port: number: 80 - match: - uri: exact: / - uri: prefix: / route: - destination: host: harbor-portal.harbor.svc.cluster.local port: number: 80