Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 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: |
Sylvain Desbureaux | 5ee4dd4 | 2020-11-21 22:52:46 +0100 | [diff] [blame] | 15 | mariadbGalera: &mariadbGalera |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 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) |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 19 | localCluster: false |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 20 | globalCluster: true |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 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: |
Piotr Marcinkiewicz | 983f2fa | 2021-05-11 13:07:36 +0200 | [diff] [blame] | 60 | image: primekey/ejbca-ce:7.4.3.2 |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 61 | pullPolicy: Always |
| 62 | |
| 63 | mariadb-galera: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 64 | db: |
| 65 | externalSecret: *ejbca-db-secret |
| 66 | name: *dbName |
| 67 | nameOverride: &ejbca-galera ejbca-galera |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 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 |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 76 | serviceAccount: |
| 77 | nameOverride: *ejbca-galera |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 78 | |
| 79 | mariadb-init: |
Sylvain Desbureaux | 93a5b49 | 2020-11-27 11:07:42 +0100 | [diff] [blame] | 80 | config: |
| 81 | userCredentialsExternalSecret: *ejbca-db-secret |
| 82 | mysqlDatabase: *dbName |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 83 | nameOverride: ejbca-config |
| 84 | |
| 85 | nodeSelector: {} |
| 86 | |
| 87 | affinity: {} |
| 88 | |
| 89 | # probe configuration parameters |
| 90 | liveness: |
| 91 | path: /ejbca/publicweb/healthcheck/ejbcahealth |
Radoslaw Chmiel | 527662f | 2022-06-02 19:23:26 +0200 | [diff] [blame] | 92 | port: 8443 |
| 93 | initialDelaySeconds: 180 |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 94 | periodSeconds: 30 |
| 95 | |
| 96 | readiness: |
| 97 | path: /ejbca/publicweb/healthcheck/ejbcahealth |
Radoslaw Chmiel | 527662f | 2022-06-02 19:23:26 +0200 | [diff] [blame] | 98 | port: 8443 |
| 99 | initialDelaySeconds: 180 |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 100 | periodSeconds: 30 |
| 101 | |
| 102 | service: |
| 103 | type: ClusterIP |
egernug | 9903d6b | 2020-05-27 09:02:25 +0100 | [diff] [blame] | 104 | both_tls_and_plain: true |
Sylvain Desbureaux | d1ca1ee | 2020-04-07 14:52:20 +0200 | [diff] [blame] | 105 | ports: |
| 106 | - name: api |
| 107 | port: 8443 |
| 108 | plain_port: 8080 |
| 109 | port_protocol: http |
Sylvain Desbureaux | 1539273 | 2020-10-22 09:49:54 +0200 | [diff] [blame] | 110 | |
| 111 | # Resource Limit flavor -By Default using small |
Radoslaw Chmiel | 527662f | 2022-06-02 19:23:26 +0200 | [diff] [blame] | 112 | flavor: unlimited |
Sylvain Desbureaux | 1539273 | 2020-10-22 09:49:54 +0200 | [diff] [blame] | 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: {} |
farida azmy | e273f78 | 2021-10-02 16:04:52 +0200 | [diff] [blame] | 130 | |
| 131 | #Pods Service Account |
| 132 | serviceAccount: |
| 133 | nameOverride: ejbca |
| 134 | roles: |
| 135 | - read |