[GENERAL] Use readiness container v3.0.1
[oom.git] / kubernetes / contrib / components / ejbca / values.yaml
1 # 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.
14 global:
15   readinessImage: onap/oom/readiness:3.0.1
16   mariadbGalera: &mariadbGalera
17     #This flag allows EJBCA to instantiate its own mariadb-galera cluster
18     localCluster: false
19     service: mariadb-galera
20     internalPort: 3306
21     nameOverride: mariadb-galera
22
23 secrets:
24   - uid: ejbca-db-secret
25     name: &ejbca-db-secret '{{ include "common.release" . }}-ejbca-db-secret'
26     type: basicAuth
27     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
28     login: '{{ .Values.config.db.userName }}'
29     password: '{{ .Values.config.db.userPassword }}'
30   - uid: ejbca-server-ra-iak
31     name: '{{ include "common.release" . }}-ejbca-ra-iak'
32     type: password
33     password: '{{ .Values.config.ejbca.raIak }}'
34   - uid: ejbca-server-client-iak
35     name: '{{ include "common.release" . }}-ejbca-client-iak'
36     type: password
37     password: '{{ .Values.config.ejbca.clientIak }}'
38
39 # application configuration
40 config:
41   db:
42     userName: ejbca
43     # userPassword: password
44     # userCredentialsExternalSecret: some-secret
45   ejbca: {}
46     # raIak: mypassword
47     # clientIak: mypassword
48
49 mysqlDatabase: &dbName ejbca
50
51 #################################################################
52 # Application configuration defaults.
53 #################################################################
54 # application configuration
55 replicaCount: 1
56
57 ejbca:
58   image: primekey/ejbca-ce:6.15.2.5
59 pullPolicy: Always
60
61 mariadb-galera:
62   # '&mariadbConfig' means we "store" the values for  later use in the file
63   # with '*mariadbConfig' pointer.
64   config: &mariadbConfig
65     userCredentialsExternalSecret: *ejbca-db-secret
66     mysqlDatabase: *dbName
67   nameOverride: ejbca-galera
68   service:
69     name: ejbca-galera
70     portName: ejbca-galera
71     internalPort: 3306
72   replicaCount: 1
73   persistence:
74     enabled: true
75     mountSubPath: ejbca/maria/data
76
77 mariadb-init:
78   config: *mariadbConfig
79   nameOverride: ejbca-config
80
81 nodeSelector: {}
82
83 affinity: {}
84
85 # probe configuration parameters
86 liveness:
87   path: /ejbca/publicweb/healthcheck/ejbcahealth
88   port: api
89   initialDelaySeconds: 30
90   periodSeconds: 30
91
92 readiness:
93   path: /ejbca/publicweb/healthcheck/ejbcahealth
94   port: api
95   initialDelaySeconds: 30
96   periodSeconds: 30
97
98 service:
99   type: ClusterIP
100   both_tls_and_plain: true
101   ports:
102     - name: api
103       port: 8443
104       plain_port: 8080
105       port_protocol: http