blob: e8eb53d1406a34edcc840580e0fee5010dd1eead [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:
25 localCluster: false
26 service:
27 name: pgset
28 name2: &postgres tcp-pgset-primary
29 name3: tcp-pgset-replica
30 container:
31 name: postgres
GuangrongFucc1316b2021-02-03 17:29:08 +080032secrets:
33- uid: pg-root-pass
34 name: &pgRootPassSecretName '{{ include "common.release" . }}-holmes-pg-root-pass'
35 type: password
36 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgRootPasswordExternalSecret) .) (hasSuffix "holmes-pg-root-pass" .Values.postgres.config.pgRootPasswordExternalSecret) }}'
37 password: '{{ .Values.postgres.config.pgRootPassword }}'
38- uid: pg-user-creds
39 name: &pgUserCredsSecretName '{{ include "common.release" . }}-holmes-pg-user-creds'
40 type: basicAuth
41 externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "holmes-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}'
42 login: '{{ .Values.postgres.config.pgUserName }}'
43 password: '{{ .Values.postgres.config.pgUserPassword }}'
44 passwordPolicy: generate
45
GuangrongFucc1316b2021-02-03 17:29:08 +080046#################################################################
47# Application configuration defaults.
48#################################################################
49pullPolicy: IfNotPresent
50
51config:
52 logstashServiceName: log-ls
53 logstashPort: 5044
54
55# application configuration override for postgres
56postgres:
57 nameOverride: holmes-pg
58 service:
59 name: holmes-postgres
60 name2: &dbHost holmes-postgres-primary
61 name3: holmes-postgres-replica
62 container:
63 name:
64 primary: holmes-postgres-primary
65 replica: holmes-postgres-replica
66 config:
67 pgUserName: holmes
68 pgDatabase: &dbName holmes
69 pgUserExternalSecret: *pgUserCredsSecretName
70 pgRootPasswordExternalSecret: *pgRootPassSecretName
71 pgPort: &dbPort "5432"
72 persistence:
73 mountSubPath: holmes/data
74 mountInitPath: holmes
75
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +020076postgres-init:
77 nameOverride: holmes-postgres-init
78 config:
79 pgUserName: holmes
80 pgDatabase: *dbName
81 pgDataPath: data
82 pgUserExternalSecret: *pgUserCredsSecretName
83 # pgPrimaryPassword: password
84 # pgUserPassword: password
85 # pgRootPassword: password
86
GuangrongFucc1316b2021-02-03 17:29:08 +080087holmes-engine-mgmt:
88 config:
89 pgConfig:
90 dbName: *dbName
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +020091 # dbHost: *dbHost
92 dbHost: *postgres
GuangrongFucc1316b2021-02-03 17:29:08 +080093 dbPort: *dbPort
94 dbUserCredsExternalSecret: *pgUserCredsSecretName
95
96holmes-rule-mgmt:
97 config:
98 pgConfig:
99 dbName: *dbName
Abdelmuhaimen Seaudia0af4242021-10-11 11:56:08 +0200100 # dbHost: *dbHost
101 dbHost: *postgres
GuangrongFucc1316b2021-02-03 17:29:08 +0800102 dbPort: *dbPort
103 dbUserCredsExternalSecret: *pgUserCredsSecretName
104
105# Resource Limit flavor -By Default using small
106flavor: small