Merge "[COMMON] Add monitoring to postgres"
[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   mariadbGalera: &mariadbGalera
16     #This flag allows SO to instantiate its own mariadb-galera cluster
17     #When changing it to "true", also set "globalCluster: false"
18     #as the dependency check will not work otherwise (Chart.yaml)
19     localCluster: false
20     globalCluster: true
21     service: mariadb-galera
22     internalPort: 3306
23     nameOverride: mariadb-galera
24
25 secrets:
26   - uid: ejbca-db-secret
27     name: &ejbca-db-secret '{{ include "common.release" . }}-ejbca-db-secret'
28     type: basicAuth
29     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
30     login: '{{ .Values.config.db.userName }}'
31     password: '{{ .Values.config.db.userPassword }}'
32   - uid: ejbca-server-ra-iak
33     name: '{{ include "common.release" . }}-ejbca-ra-iak'
34     type: password
35     password: '{{ .Values.config.ejbca.raIak }}'
36   - uid: ejbca-server-client-iak
37     name: '{{ include "common.release" . }}-ejbca-client-iak'
38     type: password
39     password: '{{ .Values.config.ejbca.clientIak }}'
40
41 # application configuration
42 config:
43   db:
44     userName: ejbca
45     # userPassword: password
46     # userCredentialsExternalSecret: some-secret
47   ejbca: {}
48     # raIak: mypassword
49     # clientIak: mypassword
50
51 mysqlDatabase: &dbName ejbca
52
53 #################################################################
54 # Application configuration defaults.
55 #################################################################
56 # application configuration
57 replicaCount: 1
58
59 ejbca:
60   image: primekey/ejbca-ce:7.4.3.2
61 pullPolicy: Always
62
63 mariadb-galera:
64   db:
65     externalSecret: *ejbca-db-secret
66     name: *dbName
67   nameOverride: &ejbca-galera 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   serviceAccount:
77     nameOverride: *ejbca-galera
78
79 mariadb-init:
80   config:
81     userCredentialsExternalSecret: *ejbca-db-secret
82     mysqlDatabase: *dbName
83   nameOverride: ejbca-config
84
85 nodeSelector: {}
86
87 affinity: {}
88
89 # probe configuration parameters
90 liveness:
91   path: /ejbca/publicweb/healthcheck/ejbcahealth
92   port: 8443
93   initialDelaySeconds: 180
94   periodSeconds: 30
95
96 readiness:
97   path: /ejbca/publicweb/healthcheck/ejbcahealth
98   port: 8443
99   initialDelaySeconds: 180
100   periodSeconds: 30
101
102 service:
103   type: ClusterIP
104   both_tls_and_plain: true
105   ports:
106     - name: api
107       port: 8443
108       plain_port: 8080
109       port_protocol: http
110
111 # Resource Limit flavor -By Default using small
112 flavor: unlimited
113 # Segregation for Different environment (Small and Large)
114 resources:
115   small:
116     limits:
117       cpu: 1500m
118       memory: 1536Mi
119     requests:
120       cpu: 10m
121       memory: 750Mi
122   large:
123     limits:
124       cpu: 2
125       memory: 2Gi
126     requests:
127       cpu: 20m
128       memory: 1Gi
129   unlimited: {}
130
131 #Pods Service Account
132 serviceAccount:
133   nameOverride: ejbca
134   roles:
135     - read