blob: 82bc03c597efef7716db58ce5e6aaae8929decf5 [file] [log] [blame]
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +02001# Copyright © 2020, Nordix Foundation, Orange
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain 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,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14global:
15 readinessRepository: oomk8s
16 readinessImage: readiness-check:2.0.1
17 mariadbGalera: &mariadbGalera
18 #This flag allows EJBCA to instantiate its own mariadb-galera cluster
19 localCluster: false
20 service: mariadb-galera
21 internalPort: 3306
22 nameOverride: mariadb-galera
23
24secrets:
25 - uid: ejbca-db-secret
26 name: &ejbca-db-secret '{{ include "common.release" . }}-ejbca-db-secret'
27 type: basicAuth
28 externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
29 login: '{{ .Values.config.db.userName }}'
30 password: '{{ .Values.config.db.userPassword }}'
31 - uid: ejbca-server-ra-iak
32 name: '{{ include "common.release" . }}-ejbca-ra-iak'
33 type: password
34 password: '{{ .Values.config.ejbca.raIak }}'
35 - uid: ejbca-server-client-iak
36 name: '{{ include "common.release" . }}-ejbca-client-iak'
37 type: password
38 password: '{{ .Values.config.ejbca.clientIak }}'
39
40# application configuration
41config:
42 db:
43 userName: ejbca
44 # userPassword: password
45 # userCredentialsExternalSecret: some-secret
46 ejbca: {}
47 # raIak: mypassword
48 # clientIak: mypassword
49
50mysqlDatabase: &dbName ejbca
51
52#################################################################
53# Application configuration defaults.
54#################################################################
55# application configuration
56replicaCount: 1
57
58ejbca:
59 image: primekey/ejbca-ce:6.15.2.5
60pullPolicy: Always
61
62mariadb-galera:
63 # '&mariadbConfig' means we "store" the values for later use in the file
64 # with '*mariadbConfig' pointer.
65 config: &mariadbConfig
66 userCredentialsExternalSecret: *ejbca-db-secret
67 mysqlDatabase: *dbName
68 nameOverride: ejbca-galera
69 service:
70 name: ejbca-galera
71 portName: ejbca-galera
72 internalPort: 3306
73 replicaCount: 1
74 persistence:
75 enabled: true
76 mountSubPath: ejbca/maria/data
77
78mariadb-init:
79 config: *mariadbConfig
80 nameOverride: ejbca-config
81
82nodeSelector: {}
83
84affinity: {}
85
86# probe configuration parameters
87liveness:
88 path: /ejbca/publicweb/healthcheck/ejbcahealth
89 port: api
90 initialDelaySeconds: 30
91 periodSeconds: 30
92
93readiness:
94 path: /ejbca/publicweb/healthcheck/ejbcahealth
95 port: api
96 initialDelaySeconds: 30
97 periodSeconds: 30
98
99service:
100 type: ClusterIP
egernug9903d6b2020-05-27 09:02:25 +0100101 both_tls_and_plain: true
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +0200102 ports:
103 - name: api
104 port: 8443
105 plain_port: 8080
106 port_protocol: http