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

23 lines
531 B
YAML
Raw Permalink Normal View History

{{- 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:
- port: {{ default 6379 .Values.istio.port }}
route:
- destination:
2022-06-03 11:11:11 +00:00
host: {{ default "redis-cluster-headless" .Values.istio.destinationHost }}
port:
number: 6379
{{- end }}