KubeZero/charts/kubezero-auth/templates/keycloak/keycloak.yaml

45 lines
1.1 KiB
YAML
Raw Normal View History

2022-05-11 14:31:37 +00:00
{{- if .Values.keycloak.enabled }}
apiVersion: k8s.keycloak.org/v2alpha1
kind: Keycloak
metadata:
name: {{ template "kubezero-lib.fullname" . }}
namespace: {{ .Release.Namespace }}
spec:
instances: 1
disableDefaultIngress: true
2022-05-11 14:31:37 +00:00
serverConfiguration:
- name: cache
value: local
{{- if .Values.postgresql.enabled }}
- name: db
value: postgres
- name: db-url-host
value: {{ template "kubezero-lib.fullname" . }}-postgresql
- name: db-username
value: keycloak
- name: db-password
secret:
name: {{ template "kubezero-lib.fullname" . }}-postgresql
key: password
{{- else }}
# Fallback to local file within the pod - dev ONLY !!
2022-05-11 14:31:37 +00:00
- name: db
value: dev-file
{{- end }}
2022-05-11 14:31:37 +00:00
- name: hostname-strict-https
value: "false"
- name: proxy
value: passthrough
- name: http-enabled
value: "true"
2022-05-11 14:31:37 +00:00
#hostname: INSECURE-DISABLE
hostname: {{ default "keycloak" .Values.keycloak.istio.url }}
# We use Istio Ingress to terminate TLS
# mTls down the road
tlsSecret: INSECURE-DISABLE
{{- end }}