2 # ============LICENSE_START=======================================================
3 # Copyright (C) 2022-23 Nordix Foundation.
4 # ================================================================================
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 # SPDX-License-Identifier: Apache-2.0
18 # ============LICENSE_END=========================================================
32 app.kubernetes.io/instance: keycloak
33 app.kubernetes.io/name: keycloak
36 externalName: keycloak.local
57 app.kubernetes.io/instance: keycloak
58 app.kubernetes.io/name: keycloak
68 app.kubernetes.io/instance: keycloak
69 app.kubernetes.io/name: keycloak
74 imagePullPolicy: IfNotPresent
75 command: ['sh', '-c', 'until nc -vz postgres 5432; do echo waiting for postgres db; sleep 2; done;']
76 serviceAccountName: keycloak
79 image: quay.io/keycloak/keycloak:latest
80 imagePullPolicy: IfNotPresent
83 '--https-key-store-file=/etc/x509/https/keystore.jks',
84 '--https-key-store-password=$(KC_KEYSTORE_PASSWORD)',
85 '--https-key-store-type=JKS',
86 '--https-trust-store-file=/etc/x509/https/truststore.jks',
87 '--https-trust-store-password=$(KC_KEYSTORE_PASSWORD)',
88 '--https-trust-store-type=JKS',
89 '--https-client-auth=request',
93 - name : KEYCLOAK_ADMIN
95 - name : KEYCLOAK_ADMIN_PASSWORD
100 value: "jdbc:postgresql://postgres:5432/keycloak"
101 - name : KC_DB_USERNAME
103 - name : KC_DB_PASSWORD
107 - name: KC_DB_URL_DATABASE
109 - name : MY_PROVIDER_JAR_URL
110 value: /opt/jboss/keycloak/standalone/deployments/authz-js-policies.jar
111 - name: KC_HEALTH_ENABLED
113 - name: KC_METRICS_ENABLED
115 - name: KC_KEYSTORE_PASSWORD
118 name: cm-keycloak-jwk-pw
131 - name: keycloak-certs
132 mountPath: /etc/x509/https
134 - name: authz-js-policies
135 mountPath: /opt/jboss/keycloak/standalone/deployments/authz-js-policies.jar
137 - name: keycloak-certs
139 secretName: cm-keycloak-server-certs
140 - name: authz-js-policies
142 path: /var/keycloak/deployments/authz-js-policies.jar
145 apiVersion: networking.istio.io/v1alpha3
151 istio: ingressgateway # use istio default ingress gateway
168 apiVersion: networking.istio.io/v1alpha3
171 name: keycloak-tls-vs
184 host: keycloak.default.svc.cluster.local
188 apiVersion: networking.istio.io/v1beta1
198 - name: "keycloak-routes"
206 host: keycloak.default.svc.cluster.local