2020-11-21 12:24:57 +00:00
|
|
|
{{- if .Values.istio.enabled }}
|
|
|
|
apiVersion: networking.istio.io/v1alpha3
|
|
|
|
kind: VirtualService
|
|
|
|
metadata:
|
|
|
|
name: redis
|
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
labels:
|
|
|
|
{{ include "kubezero-lib.labels" . | indent 4 }}
|
|
|
|
spec:
|
|
|
|
hosts:
|
|
|
|
- {{ .Values.istio.url }}
|
|
|
|
gateways:
|
|
|
|
- {{ .Values.istio.gateway }}
|
|
|
|
tcp:
|
|
|
|
- match:
|
2021-08-05 11:52:22 +00:00
|
|
|
- port: {{ default 6379 .Values.istio.port }}
|
2020-11-21 12:24:57 +00:00
|
|
|
route:
|
|
|
|
- destination:
|
2022-06-03 11:11:11 +00:00
|
|
|
host: {{ default "redis-cluster-headless" .Values.istio.destinationHost }}
|
2020-11-21 12:24:57 +00:00
|
|
|
port:
|
2021-08-05 11:52:22 +00:00
|
|
|
number: 6379
|
2020-11-21 12:24:57 +00:00
|
|
|
{{- end }}
|