blob: a03de36183686fd34a1ee2ca968fe781854fe6cc [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
vexxhost-bota7b6e3b2024-07-11 17:58:08 +020050 - --metrics-enabled=true
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020051 auth:
52 adminPassword: "{{ keycloak_admin_password }}"
53 adminUser: "{{ keycloak_admin_username }}"
54 externalDatabase:
55 host: "{{ openstack_helm_endpoints.oslo_db.hosts.default }}.openstack"
56 port: 3306
57 database: "{{ keycloak_database_name }}"
58 user: "{{ keycloak_database_username }}"
59 password: "{{ keycloak_database_password }}"
60 image:
61 registry: "{{ atmosphere_images['keycloak'] | vexxhost.kubernetes.docker_image('domain') }}"
62 repository: "{{ atmosphere_images['keycloak'] | vexxhost.kubernetes.docker_image('path') }}"
63 tag: "{{ atmosphere_images['keycloak'] | vexxhost.kubernetes.docker_image('tag') }}"
64 postgresql:
65 enabled: false
66 production: true
67 proxy: edge
Mohammed Naser73dcb9d2024-01-02 16:23:43 -050068 startupProbe:
69 enabled: true
70 initialDelaySeconds: 5
71 failureThreshold: 120
Oleksandr Kozachenko72da0122023-10-17 22:52:39 +020072 nodeSelector:
73 openstack-control-plane: enabled
vexxhost-bota7b6e3b2024-07-11 17:58:08 +020074 metrics:
75 enabled: true