blob: 90d7e1648504dd882a6c4d552dd64fffd04d6ae0 [file] [log] [blame]
ajay_dp00180f9f5c2021-03-23 21:27:51 +05301# ================================ LICENSE_START =============================
2# ============================================================================
3# Copyright (C) 2021 Nordix Foundation.
Jack Lucas64da4e72023-03-03 14:46:05 -05004# Copyright (c) 2022-2023 J. F. Lucas. All rights reserved.
ajay_dp00180f9f5c2021-03-23 21:27:51 +05305# ============================================================================
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#################################################################
22global:
23 nodePortPrefix: 302
24 nodePortPrefixExt: 304
Maciej Wereski7000a7c2021-12-16 12:24:06 +010025 centralizedLoggingEnabled: true
ajay_dp00180f9f5c2021-03-23 21:27:51 +053026
27#################################################################
28# Filebeat Configuration Defaults.
29#################################################################
30filebeatConfig:
31 logstashServiceName: log-ls
32 logstashPort: 5044
33
34#################################################################
35# Secrets Configuration.
36#################################################################
37secrets:
ajay_dp00180f9f5c2021-03-23 21:27:51 +053038 - 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#################################################################
ajay_dp00180f9f5c2021-03-23 21:27:51 +053047# Application Configuration Defaults.
48#################################################################
49# Application Image
egernugc38bcd62022-03-24 13:50:11 +000050image: onap/org.onap.dcaegen2.services.pmsh:2.2.2
ajay_dp00180f9f5c2021-03-23 21:27:51 +053051pullPolicy: Always
52
53# Log directory where logging sidecar should look for log files
Maciej Wereski7000a7c2021-12-16 12:24:06 +010054# if path is set to null sidecar won't be deployed in spite of
55# global.centralizedLoggingEnabled setting.
56log:
57 path: /var/log/ONAP/dcaegen2/services/pmsh
58logConfigMapNamePrefix: '{{ include "common.fullname" . }}'
ajay_dp00180f9f5c2021-03-23 21:27:51 +053059
ajay_dp00180f9f5c2021-03-23 21:27:51 +053060# Dependencies
61readinessCheck:
62 wait_for:
ajay_dp00180f9f5c2021-03-23 21:27:51 +053063 - &postgresName dcae-pmsh-postgres
rope2525a7fbee2022-07-25 20:00:36 +010064 - message-router
ajay_dp00180f9f5c2021-03-23 21:27:51 +053065
66# Probe Configuration
67readiness:
68 initialDelaySeconds: 10
69 periodSeconds: 15
70 timeoutSeconds: 1
71 path: /healthcheck
rope2525a7fbee2022-07-25 20:00:36 +010072 scheme: HTTP
73 port: 8080
ajay_dp00180f9f5c2021-03-23 21:27:51 +053074
75# Service Configuration
76service:
77 type: ClusterIP
78 name: dcae-pmsh
79 ports:
rope2525a7fbee2022-07-25 20:00:36 +010080 - name: http
81 port: 8080
82 plain_port: 8080
ajay_dp00180f9f5c2021-03-23 21:27:51 +053083 port_protocol: http
84
AndrewLambbd6ff6b2023-05-04 15:56:49 +010085serviceMesh:
86 authorizationPolicy:
87 authorizedPrincipals:
88 - serviceAccount: message-router-read
89 authorizedPrincipalsPostgres:
90 - serviceAccount: dcae-pmsh-read
91
ajay_dp00180f9f5c2021-03-23 21:27:51 +053092# Initial Application Configuration
93applicationConfig:
rope2525a7fbee2022-07-25 20:00:36 +010094 enable_tls: false
Jack Lucas64da4e72023-03-03 14:46:05 -050095 aaf_identity: dummy_value
96 aaf_password: dummy_value
ajay_dp00180f9f5c2021-03-23 21:27:51 +053097 key_path: /opt/app/pmsh/etc/certs/key.pem
98 cert_path: /opt/app/pmsh/etc/certs/cert.pem
99 ca_cert_path: /opt/app/pmsh/etc/certs/cacert.pem
100 control_loop_name: pmsh-control-loop
101 operational_policy_name: pmsh-operational-policy
102 pmsh_policy:
103 subscription:
104 subscriptionName: ExtraPM-All-gNB-R2B
105 administrativeState: LOCKED
106 fileBasedGP: 15
107 fileLocation: "/pm/pm.xml"
108 nfFilter: { "nfNames": [ "^pnf.*","^vnf.*" ],"modelInvariantIDs": [ ],"modelVersionIDs": [ ],"modelNames": [ ] }
109 measurementGroups: [ { "measurementGroup": { "measurementTypes": [ { "measurementType": "countera" },{ "measurementType": "counterb" } ],"managedObjectDNsBasic": [ { "DN": "dna" },{ "DN": "dnb" } ] } },{ "measurementGroup": { "measurementTypes": [ { "measurementType": "counterc" },{ "measurementType": "counterd" } ],"managedObjectDNsBasic": [ { "DN": "dnc" },{ "DN": "dnd" } ] } } ]
110 streams_publishes:
111 policy_pm_publisher:
112 type: message_router
113 dmaap_info:
rope2525a7fbee2022-07-25 20:00:36 +0100114 topic_url: "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT"
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530115 streams_subscribes:
116 policy_pm_subscriber:
117 type: message_router
118 dmaap_info:
rope2525a7fbee2022-07-25 20:00:36 +0100119 topic_url: "http://message-router:3904/events/unauthenticated.PMSH_CL_INPUT"
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530120 aai_subscriber:
121 type: message_router
122 dmaap_info:
rope2525a7fbee2022-07-25 20:00:36 +0100123 topic_url: "http://message-router:3904/events/AAI-EVENT"
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530124
125applicationEnv:
126 PMSH_PG_URL: &dcaePmshPgPrimary dcae-pmsh-pg-primary
127 PMSH_PG_USERNAME:
128 secretUid: *pgUserCredsSecretUid
129 key: login
130 PMSH_PG_PASSWORD:
131 secretUid: *pgUserCredsSecretUid
132 key: password
rope2525a7fbee2022-07-25 20:00:36 +0100133 PMSH_API_PORT: '8080'
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530134
135# Resource Limit Flavor -By Default Using Small
136flavor: small
137
138# Segregation for Different Environment (Small and Large)
139resources:
140 small:
141 limits:
142 cpu: 1
143 memory: 1Gi
144 requests:
145 cpu: 1
146 memory: 1Gi
147 large:
148 limits:
149 cpu: 2
150 memory: 2Gi
151 requests:
152 cpu: 2
153 memory: 2Gi
154 unlimited: {}
155
156#################################################################
157# Application configuration Overriding Defaults in the Postgres.
158#################################################################
159postgres:
160 nameOverride: *postgresName
161 service:
162 name: *postgresName
163 name2: *dcaePmshPgPrimary
164 name3: dcae-pmsh-pg-replica
165 container:
166 name:
167 primary: dcae-pmsh-pg-primary
168 replica: dcae-pmsh-pg-replica
169 persistence:
170 mountSubPath: pmsh/data
171 mountInitPath: pmsh
172 config:
173 pgUserName: pmsh
174 pgDatabase: pmsh
farida azmycb03ac72021-09-12 16:14:12 +0200175 pgUserExternalSecret: *pgUserCredsSecretName
176
177#Pods Service Account
178serviceAccount:
179 nameOverride: dcae-pmsh
180 roles:
181 - read