refactor(istio-resource): Move all istio resource to helmfile

This commit is contained in:
Nikolai Rodionov
2023-04-17 11:10:48 +02:00
parent 777d88fa38
commit f1a860f97b
13 changed files with 195 additions and 26 deletions

36
common/values.istio.yaml Normal file
View File

@ -0,0 +1,36 @@
---
istio:
templates:
- |
{{ range .Values.istio }}
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: {{ .name }}
spec:
gateways:
- "istio-system/{{ .gateway }}"
hosts:
- {{ .hostname | quote }}
{{- if eq .kind "http" }}
http:
- match:
- uri:
prefix: /
route:
- destination:
host: {{ .service }}
port:
number: {{ .port }}
{{- else if eq .kind "tcp" }}
tcp:
- match:
- port: {{ .port_match }}
route:
- destination:
host: {{ .service }}
port:
number: {{ .port }}
{{ end }}
{{ end }}