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     #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)
28     localCluster: false
29     globalCluster: true
30     service:
31       name: pgset
32       name2: &postgres tcp-pgset-primary
33       name3: tcp-pgset-replica
34     container:
35       name: postgres
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
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
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   serviceAccount:
91     nameOverride: holmes-postgres-init
92
93 holmes-engine-mgmt:
94   config:
95     pgConfig:
96       dbName: *dbName
97       # dbHost: *dbHost
98       dbHost: *postgres
99       dbPort: *dbPort
100       dbUserCredsExternalSecret: *pgUserCredsSecretName
101
102 holmes-rule-mgmt:
103   config:
104     pgConfig:
105       dbName: *dbName
106       # dbHost: *dbHost
107       dbHost: *postgres
108       dbPort: *dbPort
109       dbUserCredsExternalSecret: *pgUserCredsSecretName
110
111 # Resource Limit flavor -By Default using small
112 flavor: small