{{ if .Values.istio.enabled }} apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: {{ template "harbor.fullname" . }}-notary spec: selector: istio: ingressgateway # use istio default controller servers: - port: number: 80 name: http protocol: HTTP hosts: - "{{ template "harbor.notaryFQDN" . }}" --- apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: {{ template "harbor.fullname" . }}-notary spec: hosts: - "{{ template "harbor.notaryFQDN" . }}" gateways: - {{ template "harbor.fullname" . }}-notary http: - route: - destination: host: {{ template "harbor.notaryServiceName" . }} port: number: 4443 {{ end }}