blob: c223f41f795491b4de8c7c7d016a2bc26f5e0d0b [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
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020016 #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)
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020019 localCluster: false
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020020 globalCluster: true
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020021 service: mariadb-galera
22 internalPort: 3306
23 nameOverride: mariadb-galera
24
25secrets:
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
42config:
43 db:
44 userName: ejbca
45 # userPassword: password
46 # userCredentialsExternalSecret: some-secret
47 ejbca: {}
48 # raIak: mypassword
49 # clientIak: mypassword
50
51mysqlDatabase: &dbName ejbca
52
53#################################################################
54# Application configuration defaults.
55#################################################################
56# application configuration
57replicaCount: 1
58
59ejbca:
Piotr Marcinkiewicz983f2fa2021-05-11 13:07:36 +020060 image: primekey/ejbca-ce:7.4.3.2
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020061pullPolicy: Always
62
63mariadb-galera:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010064 db:
65 externalSecret: *ejbca-db-secret
66 name: *dbName
67 nameOverride: &ejbca-galera ejbca-galera
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020068 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
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010076 serviceAccount:
77 nameOverride: *ejbca-galera
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020078
79mariadb-init:
Sylvain Desbureaux93a5b492020-11-27 11:07:42 +010080 config:
81 userCredentialsExternalSecret: *ejbca-db-secret
82 mysqlDatabase: *dbName
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020083 nameOverride: ejbca-config
84
85nodeSelector: {}
86
87affinity: {}
88
89# probe configuration parameters
90liveness:
91 path: /ejbca/publicweb/healthcheck/ejbcahealth
Radoslaw Chmiel527662f2022-06-02 19:23:26 +020092 port: 8443
93 initialDelaySeconds: 180
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020094 periodSeconds: 30
95
96readiness:
97 path: /ejbca/publicweb/healthcheck/ejbcahealth
Radoslaw Chmiel527662f2022-06-02 19:23:26 +020098 port: 8443
99 initialDelaySeconds: 180
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +0200100 periodSeconds: 30
101
102service:
103 type: ClusterIP
egernug9903d6b2020-05-27 09:02:25 +0100104 both_tls_and_plain: true
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +0200105 ports:
106 - name: api
107 port: 8443
108 plain_port: 8080
109 port_protocol: http
Sylvain Desbureaux15392732020-10-22 09:49:54 +0200110
111# Resource Limit flavor -By Default using small
Radoslaw Chmiel527662f2022-06-02 19:23:26 +0200112flavor: unlimited
Sylvain Desbureaux15392732020-10-22 09:49:54 +0200113# Segregation for Different environment (Small and Large)
114resources:
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: {}
farida azmye273f782021-10-02 16:04:52 +0200130
131#Pods Service Account
132serviceAccount:
133 nameOverride: ejbca
134 roles:
135 - read