{{- if .Values.istio.enabled -}}
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ include "badhouseplants-net.fullname" . }}
labels:
{{- include "badhouseplants-net.labels" . | nindent 4 }}
{{- with .Values.istio.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
gateways:
- istio-system/badhouseplants-net
hosts:
{{- range .Values.istio.hosts}}
- {{ . }}
http:
- match:
- uri:
prefix: {{ .Values.istio.prefix }}
route:
- destination:
host: {{ include "badhouseplants-net.fullname" . }}
port:
number: {{ .Values.service.port }}
---
{{- if .Values.remark42.istio.enabled -}}
name: {{ include "remark42.fullname" . }}-remark42
{{- with .Values.remark42.istio.annotations }}
{{- range .Values.remark42.istio.hosts}}
prefix: {{ .Values.remark42.istio.prefix }}
host: {{ .Release.Name }}-remark42
number: {{ .Values.remark42.service.port }}