{{- if .Values.global.meshExpansion.enabled }} {{- if .Values.global.meshExpansion.useILB }} apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: meshexpansion-vs-citadel-ilb namespace: {{ .Release.Namespace }} labels: app: {{ template "security.name" . }} chart: {{ template "security.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} istio: citadel spec: hosts: - istio-citadel.{{ .Release.Namespace }}.svc.{{ .Values.global.proxy.clusterDomain }} gateways: - meshexpansion-ilb-gateway tcp: - match: - port: 8060 route: - destination: host: istio-citadel.{{ .Release.Namespace }}.svc.{{ .Values.global.proxy.clusterDomain }} port: number: 8060 --- {{- else }} apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata: name: meshexpansion-vs-citadel namespace: {{ .Release.Namespace }} labels: app: {{ template "security.name" . }} chart: {{ template "security.chart" . }} heritage: {{ .Release.Service }} release: {{ .Release.Name }} istio: citadel spec: hosts: - istio-citadel.{{ .Release.Namespace }}.svc.{{ .Values.global.proxy.clusterDomain }} gateways: - meshexpansion-gateway tcp: - match: - port: 8060 route: - destination: host: istio-citadel.{{ .Release.Namespace }}.svc.{{ .Values.global.proxy.clusterDomain }} port: number: 8060 --- {{- end }} {{- end }}