19 lines
538 B
YAML
19 lines
538 B
YAML
{{- if and .Values.keycloak.enabled .Values.keycloak.istio.enabled .Values.keycloak.istio.url }}
|
|
apiVersion: networking.istio.io/v1beta1
|
|
kind: VirtualService
|
|
metadata:
|
|
name: {{ template "kubezero-lib.fullname" $ }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "kubezero-lib.labels" $ | nindent 4 }}
|
|
spec:
|
|
gateways:
|
|
- {{ .Values.keycloak.istio.gateway }}
|
|
hosts:
|
|
- {{ .Values.keycloak.istio.url }}
|
|
http:
|
|
- route:
|
|
- destination:
|
|
host: {{ template "kubezero-lib.fullname" $ }}-keycloak
|
|
{{- end }}
|