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

26 lines
499 B
YAML
Raw Normal View History

{{- range $name, $service := .Values.istio }}
{{- if $service.enabled }}
2020-08-03 15:24:32 +00:00
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{ $name }}
namespace: {{ $.Release.Namespace }}
2020-08-06 17:15:20 +00:00
labels:
{{ include "kubezero-lib.labels" $ | indent 4 }}
2020-08-03 15:24:32 +00:00
spec:
hosts:
2020-12-02 12:30:17 +00:00
- {{ $service.url }}
2020-08-03 15:24:32 +00:00
gateways:
2020-12-02 12:30:17 +00:00
- {{ $service.gateway }}
2020-08-03 15:24:32 +00:00
http:
- route:
- destination:
2020-12-02 12:30:17 +00:00
host: {{ $service.destination }}
port:
number: {{ $service.port }}
2020-10-05 11:31:00 +00:00
---
{{- end }}
2020-08-03 16:44:58 +00:00
{{- end }}