GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # Modifications Copyright © 2021 ZTE |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
| 21 | consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0 |
Abdelmuhaimen Seaudi | a0af424 | 2021-10-11 11:56:08 +0200 | [diff] [blame] | 22 | #Service Names of the postgres db to connect to. |
| 23 | #Override it to dbc-pg if localCluster is enabled. |
| 24 | postgres: |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 25 | #This flag allows SO to instantiate its own mariadb-galera cluster |
| 26 | #When changing it to "true", also set "globalCluster: false" |
| 27 | #as the dependency check will not work otherwise (Chart.yaml) |
Abdelmuhaimen Seaudi | a0af424 | 2021-10-11 11:56:08 +0200 | [diff] [blame] | 28 | localCluster: false |
Andreas Geissler | f51bbef | 2023-03-31 12:07:23 +0200 | [diff] [blame] | 29 | globalCluster: true |
Abdelmuhaimen Seaudi | a0af424 | 2021-10-11 11:56:08 +0200 | [diff] [blame] | 30 | service: |
| 31 | name: pgset |
| 32 | name2: &postgres tcp-pgset-primary |
| 33 | name3: tcp-pgset-replica |
| 34 | container: |
| 35 | name: postgres |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 36 | secrets: |
| 37 | - uid: pg-root-pass |
| 38 | name: &pgRootPassSecretName '{{ include "common.release" . }}-holmes-pg-root-pass' |
| 39 | type: password |
| 40 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "holmes-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}' |
| 41 | password: '{{ .Values.postgres.config.pgRootPassword }}' |
| 42 | - uid: pg-user-creds |
| 43 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-holmes-pg-user-creds' |
| 44 | type: basicAuth |
| 45 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "holmes-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 46 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 47 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 48 | passwordPolicy: generate |
| 49 | |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 50 | ################################################################# |
| 51 | # Application configuration defaults. |
| 52 | ################################################################# |
| 53 | pullPolicy: IfNotPresent |
| 54 | |
| 55 | config: |
| 56 | logstashServiceName: log-ls |
| 57 | logstashPort: 5044 |
| 58 | |
| 59 | # application configuration override for postgres |
| 60 | postgres: |
| 61 | nameOverride: holmes-pg |
| 62 | service: |
| 63 | name: holmes-postgres |
| 64 | name2: &dbHost holmes-postgres-primary |
| 65 | name3: holmes-postgres-replica |
| 66 | container: |
| 67 | name: |
| 68 | primary: holmes-postgres-primary |
| 69 | replica: holmes-postgres-replica |
| 70 | config: |
| 71 | pgUserName: holmes |
| 72 | pgDatabase: &dbName holmes |
| 73 | pgUserExternalSecret: *pgUserCredsSecretName |
| 74 | pgRootPasswordExternalSecret: *pgRootPassSecretName |
| 75 | pgPort: &dbPort "5432" |
| 76 | persistence: |
| 77 | mountSubPath: holmes/data |
| 78 | mountInitPath: holmes |
| 79 | |
Abdelmuhaimen Seaudi | a0af424 | 2021-10-11 11:56:08 +0200 | [diff] [blame] | 80 | postgres-init: |
| 81 | nameOverride: holmes-postgres-init |
| 82 | config: |
| 83 | pgUserName: holmes |
| 84 | pgDatabase: *dbName |
| 85 | pgDataPath: data |
| 86 | pgUserExternalSecret: *pgUserCredsSecretName |
| 87 | # pgPrimaryPassword: password |
| 88 | # pgUserPassword: password |
| 89 | # pgRootPassword: password |
| 90 | |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 91 | holmes-engine-mgmt: |
| 92 | config: |
| 93 | pgConfig: |
| 94 | dbName: *dbName |
Abdelmuhaimen Seaudi | a0af424 | 2021-10-11 11:56:08 +0200 | [diff] [blame] | 95 | # dbHost: *dbHost |
| 96 | dbHost: *postgres |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 97 | dbPort: *dbPort |
| 98 | dbUserCredsExternalSecret: *pgUserCredsSecretName |
| 99 | |
| 100 | holmes-rule-mgmt: |
| 101 | config: |
| 102 | pgConfig: |
| 103 | dbName: *dbName |
Abdelmuhaimen Seaudi | a0af424 | 2021-10-11 11:56:08 +0200 | [diff] [blame] | 104 | # dbHost: *dbHost |
| 105 | dbHost: *postgres |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 106 | dbPort: *dbPort |
| 107 | dbUserCredsExternalSecret: *pgUserCredsSecretName |
| 108 | |
| 109 | # Resource Limit flavor -By Default using small |
| 110 | flavor: small |