Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / holmes / values.yaml
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
22   #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
32 secrets:
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
46
47 #################################################################
48 # Application configuration defaults.
49 #################################################################
50 pullPolicy: IfNotPresent
51
52 config:
53   logstashServiceName: log-ls
54   logstashPort: 5044
55
56 # application configuration override for postgres
57 postgres:
58   nameOverride: holmes-pg
59   service:
60     name: holmes-postgres
61     name2: &dbHost holmes-postgres-primary
62     name3: holmes-postgres-replica
63   container:
64     name:
65       primary: holmes-postgres-primary
66       replica: holmes-postgres-replica
67   config:
68     pgUserName: holmes
69     pgDatabase: &dbName holmes
70     pgUserExternalSecret: *pgUserCredsSecretName
71     pgRootPasswordExternalSecret: *pgRootPassSecretName
72     pgPort: &dbPort "5432"
73   persistence:
74     mountSubPath: holmes/data
75     mountInitPath: holmes
76
77 postgres-init:
78   nameOverride: holmes-postgres-init
79   config:
80     pgUserName: holmes
81     pgDatabase: *dbName
82     pgDataPath: data
83     pgUserExternalSecret: *pgUserCredsSecretName
84     # pgPrimaryPassword: password
85     # pgUserPassword: password
86     # pgRootPassword: password
87
88 holmes-engine-mgmt:
89   config:
90     pgConfig:
91       dbName: *dbName
92       # dbHost: *dbHost
93       dbHost: *postgres
94       dbPort: *dbPort
95       dbUserCredsExternalSecret: *pgUserCredsSecretName
96
97 holmes-rule-mgmt:
98   config:
99     pgConfig:
100       dbName: *dbName
101       # dbHost: *dbHost
102       dbHost: *postgres
103       dbPort: *dbPort
104       dbUserCredsExternalSecret: *pgUserCredsSecretName
105
106 # Resource Limit flavor -By Default using small
107 flavor: small