2020-12-02 11:53:19 +00:00
|
|
|
{{- range $name, $service := .Values.istio }}
|
|
|
|
|
|
|
|
{{- if $service.enabled }}
|
2020-08-03 15:24:32 +00:00
|
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
|
|
kind: VirtualService
|
|
|
|
metadata:
|
2020-12-02 11:53:19 +00:00
|
|
|
name: {{ $name }}
|
|
|
|
namespace: {{ $.Release.Namespace }}
|
2020-08-06 17:15:20 +00:00
|
|
|
labels:
|
2020-12-02 11:53:19 +00:00
|
|
|
{{ 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 }}
|
2023-08-24 09:07:57 +00:00
|
|
|
port:
|
|
|
|
number: {{ $service.port }}
|
2020-10-05 11:31:00 +00:00
|
|
|
---
|
2020-12-02 11:53:19 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2020-08-03 16:44:58 +00:00
|
|
|
{{- end }}
|