blob: c26bfe2fbb592ff602e8898210cf586a6799531a [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:
Sylvain Desbureaux5ee4dd42020-11-21 22:52:46 +010015 mariadbGalera: &mariadbGalera
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020016 #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
22secrets:
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
39config:
40 db:
41 userName: ejbca
42 # userPassword: password
43 # userCredentialsExternalSecret: some-secret
44 ejbca: {}
45 # raIak: mypassword
46 # clientIak: mypassword
47
48mysqlDatabase: &dbName ejbca
49
50#################################################################
51# Application configuration defaults.
52#################################################################
53# application configuration
54replicaCount: 1
55
56ejbca:
57 image: primekey/ejbca-ce:6.15.2.5
58pullPolicy: Always
59
60mariadb-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
76mariadb-init:
77 config: *mariadbConfig
78 nameOverride: ejbca-config
79
80nodeSelector: {}
81
82affinity: {}
83
84# probe configuration parameters
85liveness:
86 path: /ejbca/publicweb/healthcheck/ejbcahealth
87 port: api
88 initialDelaySeconds: 30
89 periodSeconds: 30
90
91readiness:
92 path: /ejbca/publicweb/healthcheck/ejbcahealth
93 port: api
94 initialDelaySeconds: 30
95 periodSeconds: 30
96
97service:
98 type: ClusterIP
egernug9903d6b2020-05-27 09:02:25 +010099 both_tls_and_plain: true
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +0200100 ports:
101 - name: api
102 port: 8443
103 plain_port: 8080
104 port_protocol: http
Sylvain Desbureaux15392732020-10-22 09:49:54 +0200105
106# Resource Limit flavor -By Default using small
107flavor: small
108# Segregation for Different environment (Small and Large)
109resources:
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: {}