2022-05-11 14:31:37 +00:00
|
|
|
{{- 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:
|
2023-09-06 10:43:03 +00:00
|
|
|
host: {{ template "kubezero-lib.fullname" $ }}-keycloak
|
2022-05-11 14:31:37 +00:00
|
|
|
{{- end }}
|