rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2018 Ericsson. All rights reserved. |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 3 | # Copyright (C) 2020 Huawei |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 4 | # Modifications Copyright © 2020 Nokia |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 5 | # Modifications Copyright © 2021 Orange |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # |
| 19 | # SPDX-License-Identifier: Apache-2.0 |
| 20 | # ============LICENSE_END========================================================= |
| 21 | # @author: gareth.roper@ericsson.com |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 22 | ################################################################# |
| 23 | # Global configuration defaults. |
| 24 | ################################################################# |
| 25 | global: |
| 26 | nodePortPrefix: 302 |
| 27 | nodePortPrefixExt: 304 |
| 28 | repository: nexus3.onap.org:10001 |
Andreas Geissler | d518f73 | 2024-03-25 11:15:11 +0100 | [diff] [blame] | 29 | readinessImage: onap/oom/readiness:6.0.2 |
seshukm | 0df1f8e | 2020-08-17 21:45:49 +0530 | [diff] [blame] | 30 | envsubstImage: dibi/envsubst |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 31 | persistence: |
| 32 | mountPath: /dockerdata-nfs |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 33 | mariadbGalera: |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 34 | # flag to enable the DB creation via mariadb-operator |
| 35 | useOperator: true |
Andreas Geissler | 576de2d | 2023-10-24 15:38:01 +0200 | [diff] [blame] | 36 | service: mariadb-galera |
krishnaa96 | 92b606b | 2020-10-30 11:29:21 +0530 | [diff] [blame] | 37 | servicePort: '3306' |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 38 | |
| 39 | ################################################################# |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 40 | # Secrets metaconfig |
| 41 | ################################################################# |
| 42 | secrets: |
| 43 | - uid: db-user-creds |
| 44 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 45 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 46 | login: '{{ .Values.db.userName }}' |
| 47 | password: '{{ .Values.db.userPassword }}' |
| 48 | passwordPolicy: required |
| 49 | - uid: db-admin-creds |
| 50 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 51 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 52 | login: '{{ .Values.db.adminName }}' |
| 53 | password: '{{ .Values.db.adminPassword }}' |
| 54 | passwordPolicy: required |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 55 | - uid: app-user-creds |
| 56 | type: basicAuth |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 57 | externalSecret: '{{ tpl (default "" .Values.server.cockpit.soMonitoringCredsExternalSecret) . }}' |
| 58 | login: '{{ .Values.server.cockpit.username }}' |
| 59 | password: '{{ .Values.server.cockpit.password }}' |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 60 | |
| 61 | #secretsFilePaths: | |
| 62 | # - 'my file 1' |
| 63 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 64 | |
| 65 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 66 | # Application configuration defaults. |
| 67 | ################################################################# |
| 68 | repository: nexus3.onap.org:10001 |
Lukasz Rajewski | b686124 | 2022-09-06 13:32:58 +0200 | [diff] [blame] | 69 | image: onap/so/so-admin-cockpit:1.9.0 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 70 | pullPolicy: Always |
| 71 | |
Andreas Geissler | 2c1ba29 | 2024-01-10 22:20:05 +0100 | [diff] [blame] | 72 | # Local mariadb galera instance default name |
| 73 | mariadb-galera: |
| 74 | nameOverride: so-mariadb-galera |
| 75 | service: |
| 76 | internalPort: 3306 |
| 77 | mariadbOperator: |
| 78 | galera: |
| 79 | enabled: false |
| 80 | |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 81 | db: |
| 82 | userName: so_user |
| 83 | userPassword: so_User123 |
| 84 | # userCredsExternalSecret: some secret |
| 85 | adminName: so_admin |
| 86 | adminPassword: so_Admin123 |
| 87 | # adminCredsExternalSecret: some secret |
| 88 | |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 89 | replicaCount: 1 |
| 90 | minReadySeconds: 10 |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 91 | containerPort: &containerPort 9091 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 92 | logPath: app/logs/ |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 93 | app: so-admin-cockpit |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 94 | |
| 95 | ################################################################# |
| 96 | # soHelpers part |
| 97 | ################################################################# |
| 98 | soHelpers: |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 99 | containerPort: *containerPort |
| 100 | |
| 101 | server: |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 102 | cockpit: |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 103 | username: demo |
| 104 | # password: demo123456! |
| 105 | # soMonitoringCredsExternalSecret: some secret |
| 106 | |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 107 | service: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 108 | type: NodePort |
| 109 | ports: |
| 110 | - port: *containerPort |
| 111 | name: http |
| 112 | nodePort: 24 |
| 113 | |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 114 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 115 | type: RollingUpdate |
| 116 | maxUnavailable: 1 |
| 117 | maxSurge: 1 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 118 | # Resource Limit flavor -By Default using small |
| 119 | flavor: small |
| 120 | #Segregation for different environment (Small or large) |
| 121 | resources: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 122 | small: |
| 123 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 124 | cpu: "0.5" |
| 125 | memory: "1Gi" |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 126 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 127 | cpu: "1" |
| 128 | memory: "4Gi" |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 129 | large: |
| 130 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 131 | cpu: "1" |
| 132 | memory: "2Gi" |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 133 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 134 | cpu: "2" |
| 135 | memory: "8Gi" |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 136 | unlimited: {} |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 137 | readinessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 138 | port: 9091 |
Andreas Geissler | 0ac5112 | 2023-06-15 09:09:16 +0200 | [diff] [blame] | 139 | initialDelaySeconds: 40 |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 140 | periodSeconds: 10 |
| 141 | timeoutSeconds: 10 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 142 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 143 | port: 9091 |
Andreas Geissler | 0ac5112 | 2023-06-15 09:09:16 +0200 | [diff] [blame] | 144 | initialDelaySeconds: 80 |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 145 | periodSeconds: 10 |
| 146 | timeoutSeconds: 10 |
| 147 | successThreshold: 1 |
| 148 | failureThreshold: 3 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 149 | ingress: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 150 | enabled: false |
| 151 | service: |
| 152 | - baseaddr: "so-admin-cockpit-ui" |
| 153 | name: "so-admin-cockpit" |
| 154 | port: 9091 |
| 155 | config: |
| 156 | ssl: "none" |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 157 | serviceMesh: |
| 158 | authorizationPolicy: |
| 159 | authorizedPrincipals: |
| 160 | - serviceAccount: portal-app-read |
| 161 | - serviceAccount: so-read |
| 162 | - serviceAccount: istio-ingress |
| 163 | namespace: istio-ingress |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 164 | nodeSelector: {} |
| 165 | tolerations: [] |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 166 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 167 | |
| 168 | #Pods Service Account |
| 169 | serviceAccount: |
| 170 | nameOverride: so-admin-cockpit |
| 171 | roles: |
| 172 | - read |