blob: 35160e4b13633aae41459e95dcb54b567f3c6aa7 [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 Desbureaux1694e1d2020-08-21 09:58:25 +020015 readinessImage: onap/oom/readiness:3.0.1
Sylvain Desbureaux15392732020-10-22 09:49:54 +020016 mariadbGalera: &mariadbGalera
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020017 #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
23secrets:
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
Bartek Grzybowski2f098b02020-10-05 09:34:26 +020040repository: nexus3.onap.org:10001
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +020041config:
42 db:
43 userName: ejbca
44 # userPassword: password
45 # userCredentialsExternalSecret: some-secret
46 ejbca: {}
47 # raIak: mypassword
48 # clientIak: mypassword
49
50mysqlDatabase: &dbName ejbca
51
52#################################################################
53# Application configuration defaults.
54#################################################################
55# application configuration
56replicaCount: 1
57
58ejbca:
59 image: primekey/ejbca-ce:6.15.2.5
60pullPolicy: Always
61
62mariadb-galera:
63 # '&mariadbConfig' means we "store" the values for later use in the file
64 # with '*mariadbConfig' pointer.
65 config: &mariadbConfig
66 userCredentialsExternalSecret: *ejbca-db-secret
67 mysqlDatabase: *dbName
68 nameOverride: ejbca-galera
69 service:
70 name: ejbca-galera
71 portName: ejbca-galera
72 internalPort: 3306
73 replicaCount: 1
74 persistence:
75 enabled: true
76 mountSubPath: ejbca/maria/data
77
78mariadb-init:
79 config: *mariadbConfig
80 nameOverride: ejbca-config
81
82nodeSelector: {}
83
84affinity: {}
85
86# probe configuration parameters
87liveness:
88 path: /ejbca/publicweb/healthcheck/ejbcahealth
89 port: api
90 initialDelaySeconds: 30
91 periodSeconds: 30
92
93readiness:
94 path: /ejbca/publicweb/healthcheck/ejbcahealth
95 port: api
96 initialDelaySeconds: 30
97 periodSeconds: 30
98
99service:
100 type: ClusterIP
egernug9903d6b2020-05-27 09:02:25 +0100101 both_tls_and_plain: true
Sylvain Desbureauxd1ca1ee2020-04-07 14:52:20 +0200102 ports:
103 - name: api
104 port: 8443
105 plain_port: 8080
106 port_protocol: http
Sylvain Desbureaux15392732020-10-22 09:49:54 +0200107
108# Resource Limit flavor -By Default using small
109flavor: small
110# Segregation for Different environment (Small and Large)
111resources:
112 small:
113 limits:
114 cpu: 1500m
115 memory: 1536Mi
116 requests:
117 cpu: 10m
118 memory: 750Mi
119 large:
120 limits:
121 cpu: 2
122 memory: 2Gi
123 requests:
124 cpu: 20m
125 memory: 1Gi
126 unlimited: {}