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 |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 29 | readinessImage: onap/oom/readiness:3.0.1 |
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: |
| 34 | serviceName: mariadb-galera |
| 35 | servicePort: '3306' |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 36 | |
| 37 | ################################################################# |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 38 | # Secrets metaconfig |
| 39 | ################################################################# |
| 40 | secrets: |
| 41 | - uid: db-user-creds |
| 42 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 43 | externalSecret: '{{ tpl (default "" .Values.db.userCredsExternalSecret) . }}' |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 44 | login: '{{ .Values.db.userName }}' |
| 45 | password: '{{ .Values.db.userPassword }}' |
| 46 | passwordPolicy: required |
| 47 | - uid: db-admin-creds |
| 48 | type: basicAuth |
Krzysztof Opasiak | c53ff54 | 2020-03-28 02:14:37 +0100 | [diff] [blame] | 49 | externalSecret: '{{ tpl (default "" .Values.db.adminCredsExternalSecret) . }}' |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 50 | login: '{{ .Values.db.adminName }}' |
| 51 | password: '{{ .Values.db.adminPassword }}' |
| 52 | passwordPolicy: required |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 53 | - uid: app-user-creds |
| 54 | type: basicAuth |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 55 | externalSecret: '{{ tpl (default "" .Values.server.cockpit.soMonitoringCredsExternalSecret) . }}' |
| 56 | login: '{{ .Values.server.cockpit.username }}' |
| 57 | password: '{{ .Values.server.cockpit.password }}' |
Sylvain Desbureaux | aadf545 | 2020-03-18 18:13:51 +0100 | [diff] [blame] | 58 | |
| 59 | #secretsFilePaths: | |
| 60 | # - 'my file 1' |
| 61 | # - '{{ include "templateThatGeneratesFileName" . }}' |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 62 | |
| 63 | ################################################################# |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 64 | # Application configuration defaults. |
| 65 | ################################################################# |
| 66 | repository: nexus3.onap.org:10001 |
Lukasz Rajewski | b686124 | 2022-09-06 13:32:58 +0200 | [diff] [blame] | 67 | image: onap/so/so-admin-cockpit:1.9.0 |
jmac | c4f04d3 | 2018-10-12 18:24:24 +0000 | [diff] [blame] | 68 | pullPolicy: Always |
| 69 | |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 70 | db: |
| 71 | userName: so_user |
| 72 | userPassword: so_User123 |
| 73 | # userCredsExternalSecret: some secret |
| 74 | adminName: so_admin |
| 75 | adminPassword: so_Admin123 |
| 76 | # adminCredsExternalSecret: some secret |
| 77 | |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 78 | replicaCount: 1 |
| 79 | minReadySeconds: 10 |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 80 | containerPort: &containerPort 9091 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 81 | logPath: app/logs/ |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 82 | app: so-admin-cockpit |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 83 | |
| 84 | ################################################################# |
| 85 | # soHelpers part |
| 86 | ################################################################# |
| 87 | soHelpers: |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 88 | containerPort: *containerPort |
| 89 | |
| 90 | server: |
Sylvain Desbureaux | 1eff56b | 2021-02-25 14:13:01 +0100 | [diff] [blame] | 91 | cockpit: |
Krzysztof Gajewski | cd2e66f | 2020-10-15 20:33:34 +0200 | [diff] [blame] | 92 | username: demo |
| 93 | # password: demo123456! |
| 94 | # soMonitoringCredsExternalSecret: some secret |
| 95 | |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 96 | service: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 97 | type: NodePort |
| 98 | ports: |
| 99 | - port: *containerPort |
| 100 | name: http |
| 101 | nodePort: 24 |
| 102 | |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 103 | updateStrategy: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 104 | type: RollingUpdate |
| 105 | maxUnavailable: 1 |
| 106 | maxSurge: 1 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 107 | # Resource Limit flavor -By Default using small |
| 108 | flavor: small |
| 109 | #Segregation for different environment (Small or large) |
| 110 | resources: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 111 | small: |
| 112 | requests: |
| 113 | memory: 1Gi |
| 114 | cpu: 10m |
| 115 | limits: |
| 116 | memory: 4Gi |
| 117 | cpu: 1 |
| 118 | large: |
| 119 | requests: |
| 120 | memory: 2Gi |
| 121 | cpu: 20m |
| 122 | limits: |
| 123 | memory: 8Gi |
| 124 | cpu: 2 |
| 125 | unlimited: {} |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 126 | readinessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 127 | port: 9091 |
| 128 | initialDelaySeconds: 20 |
| 129 | periodSeconds: 10 |
| 130 | timeoutSeconds: 10 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 131 | livenessProbe: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 132 | port: 9091 |
| 133 | initialDelaySeconds: 40 |
| 134 | periodSeconds: 10 |
| 135 | timeoutSeconds: 10 |
| 136 | successThreshold: 1 |
| 137 | failureThreshold: 3 |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 138 | ingress: |
Andreas Geissler | ad61ccf | 2023-02-23 09:17:36 +0100 | [diff] [blame] | 139 | enabled: false |
| 140 | service: |
| 141 | - baseaddr: "so-admin-cockpit-ui" |
| 142 | name: "so-admin-cockpit" |
| 143 | port: 9091 |
| 144 | config: |
| 145 | ssl: "none" |
AndrewLamb | ab2704a | 2023-04-05 14:45:11 +0100 | [diff] [blame] | 146 | serviceMesh: |
| 147 | authorizationPolicy: |
| 148 | authorizedPrincipals: |
| 149 | - serviceAccount: portal-app-read |
| 150 | - serviceAccount: so-read |
| 151 | - serviceAccount: istio-ingress |
| 152 | namespace: istio-ingress |
rope252 | cd2142c | 2018-09-17 12:35:36 +0100 | [diff] [blame] | 153 | nodeSelector: {} |
| 154 | tolerations: [] |
Krzysztof Opasiak | 0be83cb | 2020-03-24 21:44:00 +0100 | [diff] [blame] | 155 | affinity: {} |
farida azmy | 87f4622 | 2021-04-06 15:25:15 +0200 | [diff] [blame] | 156 | |
| 157 | #Pods Service Account |
| 158 | serviceAccount: |
| 159 | nameOverride: so-admin-cockpit |
| 160 | roles: |
| 161 | - read |