distro-tools/deploy/apollo/apollo-server/templates/virtualservice.yaml
2023-02-02 17:55:58 +01:00

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 }}