blob: 40c3d872ffe0719247b649b20de07c6441f9236c [file] [log] [blame]
GuangrongFucc1316b2021-02-03 17:29:08 +08001# 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#################################################################
19global:
20 nodePortPrefix: 302
21 consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.0.0
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +020022 #Service Names of the postgres db to connect to.
23 #Override it to dbc-pg if localCluster is enabled.
24 postgres:
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020025 #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 Seaudia0af4242021-10-11 11:56:08 +020028 localCluster: false
Andreas Geisslerf51bbef2023-03-31 12:07:23 +020029 globalCluster: true
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +020030 service:
31 name: pgset
32 name2: &postgres tcp-pgset-primary
33 name3: tcp-pgset-replica
34 container:
35 name: postgres
GuangrongFucc1316b2021-02-03 17:29:08 +080036secrets:
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
GuangrongFucc1316b2021-02-03 17:29:08 +080050#################################################################
51# Application configuration defaults.
52#################################################################
53pullPolicy: IfNotPresent
54
55config:
56 logstashServiceName: log-ls
57 logstashPort: 5044
58
59# application configuration override for postgres
60postgres:
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 Seaudia0af4242021-10-11 11:56:08 +020080postgres-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
GuangrongFucc1316b2021-02-03 17:29:08 +080091holmes-engine-mgmt:
92 config:
93 pgConfig:
94 dbName: *dbName
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +020095 # dbHost: *dbHost
96 dbHost: *postgres
GuangrongFucc1316b2021-02-03 17:29:08 +080097 dbPort: *dbPort
98 dbUserCredsExternalSecret: *pgUserCredsSecretName
99
100holmes-rule-mgmt:
101 config:
102 pgConfig:
103 dbName: *dbName
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +0200104 # dbHost: *dbHost
105 dbHost: *postgres
GuangrongFucc1316b2021-02-03 17:29:08 +0800106 dbPort: *dbPort
107 dbUserCredsExternalSecret: *pgUserCredsSecretName
108
109# Resource Limit flavor -By Default using small
110flavor: small