blob: b4bbf26438e4e34120b70995c4dd30ed1e20bb01 [file] [log] [blame]
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +02001# Copyright (c) 2022 VEXXHOST, Inc.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
14
15_keycloak_helm_values:
Mohammed Naser65cda132024-05-02 14:34:08 -040016 # NOTE(mnaser): These workarounds below are needed to allow the Bitnami Helm chart to work with
17 # the upstream image.
18 enableDefaultInitContainers: false
19 containerSecurityContext:
20 readOnlyRootFilesystem: false
21 runAsUser: 1000
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020022 # Note(okozachenko1203): Mysql vendor is not supported by bitnami helm chart. As a workaround,
23 # we have to define jdbc connection string explicitly along side
24 # `externalDatabase` helm values.
25 extraEnvVars:
26 - name: KC_PROXY
27 value: edge
28 - name: KC_DB
29 value: mysql
30 - name: KC_DB_URL
31 value: "jdbc:mysql://{{ openstack_helm_endpoints.oslo_db.hosts.default }}.openstack:3306/{{ keycloak_database_name }}"
32 - name: KC_DB_USERNAME
33 value: "{{ keycloak_database_username }}"
34 - name: KC_DB_PASSWORD
35 valueFrom:
36 secretKeyRef:
37 key: db-password
38 name: keycloak-externaldb
39 command:
40 - /opt/keycloak/bin/kc.sh
41 - --verbose
42 - start
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020043 - --health-enabled=true
44 - --http-enabled=true
45 - --http-port=8080
46 - --hostname-strict=false
47 - --spi-events-listener-jboss-logging-success-level=info
48 - --spi-events-listener-jboss-logging-error-level=warn
49 - --transaction-xa-enabled=false
50 auth:
51 adminPassword: "{{ keycloak_admin_password }}"
52 adminUser: "{{ keycloak_admin_username }}"
53 externalDatabase:
54 host: "{{ openstack_helm_endpoints.oslo_db.hosts.default }}.openstack"
55 port: 3306
56 database: "{{ keycloak_database_name }}"
57 user: "{{ keycloak_database_username }}"
58 password: "{{ keycloak_database_password }}"
59 image:
60 registry: "{{ atmosphere_images['keycloak'] | vexxhost.kubernetes.docker_image('domain') }}"
61 repository: "{{ atmosphere_images['keycloak'] | vexxhost.kubernetes.docker_image('path') }}"
62 tag: "{{ atmosphere_images['keycloak'] | vexxhost.kubernetes.docker_image('tag') }}"
63 postgresql:
64 enabled: false
65 production: true
66 proxy: edge
Mohammed Naser73dcb9d2024-01-02 16:23:43 -050067 startupProbe:
68 enabled: true
69 initialDelaySeconds: 5
70 failureThreshold: 120
Oleksandr Kozachenko72da0122023-10-17 22:52:39 +020071 nodeSelector:
72 openstack-control-plane: enabled