Merge "[LOG] Fix log charts to be compatibile with k8s 1.16+ and helm 3"
[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 EJBCA to instantiate its own mariadb-galera cluster
17     localCluster: false
18     service: mariadb-galera
19     internalPort: 3306
20     nameOverride: mariadb-galera
21
22 secrets:
23   - uid: ejbca-db-secret
24     name: &ejbca-db-secret '{{ include "common.release" . }}-ejbca-db-secret'
25     type: basicAuth
26     externalSecret: '{{ tpl (default "" .Values.config.db.userCredentialsExternalSecret) . }}'
27     login: '{{ .Values.config.db.userName }}'
28     password: '{{ .Values.config.db.userPassword }}'
29   - uid: ejbca-server-ra-iak
30     name: '{{ include "common.release" . }}-ejbca-ra-iak'
31     type: password
32     password: '{{ .Values.config.ejbca.raIak }}'
33   - uid: ejbca-server-client-iak
34     name: '{{ include "common.release" . }}-ejbca-client-iak'
35     type: password
36     password: '{{ .Values.config.ejbca.clientIak }}'
37
38 # application configuration
39 config:
40   db:
41     userName: ejbca
42     # userPassword: password
43     # userCredentialsExternalSecret: some-secret
44   ejbca: {}
45     # raIak: mypassword
46     # clientIak: mypassword
47
48 mysqlDatabase: &dbName ejbca
49
50 #################################################################
51 # Application configuration defaults.
52 #################################################################
53 # application configuration
54 replicaCount: 1
55
56 ejbca:
57   image: primekey/ejbca-ce:6.15.2.5
58 pullPolicy: Always
59
60 mariadb-galera:
61   # '&mariadbConfig' means we "store" the values for  later use in the file
62   # with '*mariadbConfig' pointer.
63   config: &mariadbConfig
64     userCredentialsExternalSecret: *ejbca-db-secret
65     mysqlDatabase: *dbName
66   nameOverride: ejbca-galera
67   service:
68     name: ejbca-galera
69     portName: ejbca-galera
70     internalPort: 3306
71   replicaCount: 1
72   persistence:
73     enabled: true
74     mountSubPath: ejbca/maria/data
75
76 mariadb-init:
77   config: *mariadbConfig
78   nameOverride: ejbca-config
79
80 nodeSelector: {}
81
82 affinity: {}
83
84 # probe configuration parameters
85 liveness:
86   path: /ejbca/publicweb/healthcheck/ejbcahealth
87   port: api
88   initialDelaySeconds: 30
89   periodSeconds: 30
90
91 readiness:
92   path: /ejbca/publicweb/healthcheck/ejbcahealth
93   port: api
94   initialDelaySeconds: 30
95   periodSeconds: 30
96
97 service:
98   type: ClusterIP
99   both_tls_and_plain: true
100   ports:
101     - name: api
102       port: 8443
103       plain_port: 8080
104       port_protocol: http
105
106 # Resource Limit flavor -By Default using small
107 flavor: small
108 # Segregation for Different environment (Small and Large)
109 resources:
110   small:
111     limits:
112       cpu: 1500m
113       memory: 1536Mi
114     requests:
115       cpu: 10m
116       memory: 750Mi
117   large:
118     limits:
119       cpu: 2
120       memory: 2Gi
121     requests:
122       cpu: 20m
123       memory: 1Gi
124   unlimited: {}