mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-23 03:08:31 +00:00
23 lines
630 B
YAML
23 lines
630 B
YAML
|
{{- if .Values.istio.enabled -}}
|
||
|
apiVersion: networking.istio.io/v1alpha3
|
||
|
kind: VirtualService
|
||
|
metadata:
|
||
|
annotations:
|
||
|
{{- if .Values.istio.externalDnsTarget }}
|
||
|
external-dns.alpha.kubernetes.io/target: {{ .Values.istio.externalDnsTarget }}
|
||
|
{{- end}}
|
||
|
labels:
|
||
|
{{- include "apollo-server.selectorLabels" . | nindent 4 }}
|
||
|
name: {{ include "apollo-server.fullname" . }}-virtual-service
|
||
|
spec:
|
||
|
gateways:
|
||
|
- {{ .Values.istio.gateway }}
|
||
|
hosts:
|
||
|
- {{ .Values.istio.host }}
|
||
|
http:
|
||
|
- route:
|
||
|
- destination:
|
||
|
host: {{ include "apollo-server.fullname" . }}
|
||
|
port:
|
||
|
number: 8000
|
||
|
{{- end }}
|