Merge "[AAI] Add model-loader tracing config"
[oom.git] / kubernetes / dcaegen2-services / components / dcae-pmsh / values.yaml
1 # ================================ LICENSE_START =============================
2 # ============================================================================
3 #  Copyright (C) 2021 Nordix Foundation.
4 #  Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
5 # ============================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #     http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ================================= LICENSE_END ==============================
18
19 #################################################################
20 # Global Configuration Defaults.
21 #################################################################
22 global:
23   nodePortPrefix: 302
24   nodePortPrefixExt: 304
25   centralizedLoggingEnabled: true
26
27 #################################################################
28 # Filebeat Configuration Defaults.
29 #################################################################
30 filebeatConfig:
31   logstashServiceName: log-ls
32   logstashPort: 5044
33
34 #################################################################
35 # Secrets Configuration.
36 #################################################################
37 secrets:
38   - uid: &pgUserCredsSecretUid pg-user-creds
39     name: &pgUserCredsSecretName '{{ include "common.release" . }}-pmsh-pg-user-creds'
40     type: basicAuth
41     externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "pmsh-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 # Application Configuration Defaults.
48 #################################################################
49 # Application Image
50 image: onap/org.onap.dcaegen2.services.pmsh:2.2.3
51 pullPolicy: Always
52
53 # Log directory where logging sidecar should look for log files
54 # if path is set to null sidecar won't be deployed in spite of
55 # global.centralizedLoggingEnabled setting.
56 log:
57   path: /var/log/ONAP/dcaegen2/services/pmsh
58 logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
59
60 # Probe Configuration
61 readiness:
62   initialDelaySeconds: 10
63   periodSeconds: 15
64   timeoutSeconds: 1
65   path: /healthcheck
66   scheme: HTTP
67   port: 8080
68
69 # Service Configuration
70 service:
71   type: ClusterIP
72   name: dcae-pmsh
73   ports:
74     - name: http
75       port: 8080
76       plain_port: 8080
77       port_protocol: http
78
79 serviceMesh:
80   authorizationPolicy:
81     authorizedPrincipals:
82       - serviceAccount: message-router-read
83     authorizedPrincipalsPostgres:
84       - serviceAccount: dcae-pmsh-read
85
86 # Initial Application Configuration
87 applicationConfig:
88   enable_tls: false
89   aaf_identity: dummy_value
90   aaf_password: dummy_value
91   key_path: /opt/app/pmsh/etc/certs/key.pem
92   cert_path: /opt/app/pmsh/etc/certs/cert.pem
93   ca_cert_path: /opt/app/pmsh/etc/certs/cacert.pem
94   control_loop_name: pmsh-control-loop
95   operational_policy_name: pmsh-operational-policy
96   pmsh_policy:
97     subscription:
98       subscriptionName: ExtraPM-All-gNB-R2B
99       administrativeState: LOCKED
100       fileBasedGP: 15
101       fileLocation: "/pm/pm.xml"
102       nfFilter: { "nfNames": [ "^pnf.*","^vnf.*" ],"modelInvariantIDs": [ ],"modelVersionIDs": [ ],"modelNames": [ ] }
103       measurementGroups: [ { "measurementGroup": { "measurementTypes": [ { "measurementType": "countera" },{ "measurementType": "counterb" } ],"managedObjectDNsBasic": [ { "DN": "dna" },{ "DN": "dnb" } ] } },{ "measurementGroup": { "measurementTypes": [ { "measurementType": "counterc" },{ "measurementType": "counterd" } ],"managedObjectDNsBasic": [ { "DN": "dnc" },{ "DN": "dnd" } ] } } ]
104   streams_publishes:
105     policy_pm_publisher:
106       type: message_router
107       dmaap_info:
108         topic_url: "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT"
109   streams_subscribes:
110     policy_pm_subscriber:
111       type: message_router
112       dmaap_info:
113         topic_url: "http://message-router:3904/events/unauthenticated.PMSH_CL_INPUT"
114     aai_subscriber:
115       type: message_router
116       dmaap_info:
117         topic_url: "http://message-router:3904/events/AAI-EVENT"
118
119 applicationEnv:
120   PMSH_PG_URL: &dcaePmshPgPrimary dcae-pmsh-pg-primary
121   PMSH_PG_USERNAME:
122      secretUid: *pgUserCredsSecretUid
123      key: login
124   PMSH_PG_PASSWORD:
125      secretUid: *pgUserCredsSecretUid
126      key: password
127   PMSH_API_PORT: '8080'
128
129 # Resource Limit Flavor -By Default Using Small
130 flavor: small
131
132 # Segregation for Different Environment (Small and Large)
133 resources:
134   small:
135     limits:
136       cpu: "1"
137       memory: "1Gi"
138     requests:
139       cpu: "1"
140       memory: "1Gi"
141   large:
142     limits:
143       cpu: "2"
144       memory: "2Gi"
145     requests:
146       cpu: "2"
147       memory: "2Gi"
148   unlimited: {}
149
150 #################################################################
151 # Application configuration Overriding Defaults in the Postgres.
152 #################################################################
153 postgres:
154   nameOverride: &postgresName dcae-pmsh-postgres
155   service:
156     name: *postgresName
157     name2: *dcaePmshPgPrimary
158     name3: dcae-pmsh-pg-replica
159   container:
160     name:
161       primary: dcae-pmsh-pg-primary
162       replica: dcae-pmsh-pg-replica
163   persistence:
164     mountSubPath: pmsh/data
165     mountInitPath: pmsh
166   config:
167     pgUserName: pmsh
168     pgDatabase: pmsh
169     pgUserExternalSecret: *pgUserCredsSecretName
170
171 # Dependencies
172 readinessCheck:
173   wait_for:
174     services:
175     - '{{ .Values.postgres.service.name2 }}'
176     - message-router
177
178 #Pods Service Account
179 serviceAccount:
180   nameOverride: dcae-pmsh
181   roles:
182     - read