kubezero/charts/kubezero-metrics/templates/istio-service.yaml

24 lines
453 B
YAML

{{- range $name, $service := .Values.istio }}
{{- if $service.enabled }}
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ $name }}
namespace: {{ $.Release.Namespace }}
labels:
{{ include "kubezero-lib.labels" $ | indent 4 }}
spec:
hosts:
- {{ index $service.url }}
gateways:
- {{ index $service.gateway }}
http:
- route:
- destination:
host: metrics-{{- $name }}
---
{{- end }}
{{- end }}