blob: f6782db6c6d415646e160bfba218c27518a51f83 [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
ajay_dp00180f9f5c2021-03-23 21:27:51 +053085# Initial Application Configuration
86applicationConfig:
rope2525a7fbee2022-07-25 20:00:36 +010087 enable_tls: false
Jack Lucas64da4e72023-03-03 14:46:05 -050088 aaf_identity: dummy_value
89 aaf_password: dummy_value
ajay_dp00180f9f5c2021-03-23 21:27:51 +053090 key_path: /opt/app/pmsh/etc/certs/key.pem
91 cert_path: /opt/app/pmsh/etc/certs/cert.pem
92 ca_cert_path: /opt/app/pmsh/etc/certs/cacert.pem
93 control_loop_name: pmsh-control-loop
94 operational_policy_name: pmsh-operational-policy
95 pmsh_policy:
96 subscription:
97 subscriptionName: ExtraPM-All-gNB-R2B
98 administrativeState: LOCKED
99 fileBasedGP: 15
100 fileLocation: "/pm/pm.xml"
101 nfFilter: { "nfNames": [ "^pnf.*","^vnf.*" ],"modelInvariantIDs": [ ],"modelVersionIDs": [ ],"modelNames": [ ] }
102 measurementGroups: [ { "measurementGroup": { "measurementTypes": [ { "measurementType": "countera" },{ "measurementType": "counterb" } ],"managedObjectDNsBasic": [ { "DN": "dna" },{ "DN": "dnb" } ] } },{ "measurementGroup": { "measurementTypes": [ { "measurementType": "counterc" },{ "measurementType": "counterd" } ],"managedObjectDNsBasic": [ { "DN": "dnc" },{ "DN": "dnd" } ] } } ]
103 streams_publishes:
104 policy_pm_publisher:
105 type: message_router
106 dmaap_info:
rope2525a7fbee2022-07-25 20:00:36 +0100107 topic_url: "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT"
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530108 streams_subscribes:
109 policy_pm_subscriber:
110 type: message_router
111 dmaap_info:
rope2525a7fbee2022-07-25 20:00:36 +0100112 topic_url: "http://message-router:3904/events/unauthenticated.PMSH_CL_INPUT"
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530113 aai_subscriber:
114 type: message_router
115 dmaap_info:
rope2525a7fbee2022-07-25 20:00:36 +0100116 topic_url: "http://message-router:3904/events/AAI-EVENT"
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530117
118applicationEnv:
119 PMSH_PG_URL: &dcaePmshPgPrimary dcae-pmsh-pg-primary
120 PMSH_PG_USERNAME:
121 secretUid: *pgUserCredsSecretUid
122 key: login
123 PMSH_PG_PASSWORD:
124 secretUid: *pgUserCredsSecretUid
125 key: password
rope2525a7fbee2022-07-25 20:00:36 +0100126 PMSH_API_PORT: '8080'
ajay_dp00180f9f5c2021-03-23 21:27:51 +0530127
128# Resource Limit Flavor -By Default Using Small
129flavor: small
130
131# Segregation for Different Environment (Small and Large)
132resources:
133 small:
134 limits:
135 cpu: 1
136 memory: 1Gi
137 requests:
138 cpu: 1
139 memory: 1Gi
140 large:
141 limits:
142 cpu: 2
143 memory: 2Gi
144 requests:
145 cpu: 2
146 memory: 2Gi
147 unlimited: {}
148
149#################################################################
150# Application configuration Overriding Defaults in the Postgres.
151#################################################################
152postgres:
153 nameOverride: *postgresName
154 service:
155 name: *postgresName
156 name2: *dcaePmshPgPrimary
157 name3: dcae-pmsh-pg-replica
158 container:
159 name:
160 primary: dcae-pmsh-pg-primary
161 replica: dcae-pmsh-pg-replica
162 persistence:
163 mountSubPath: pmsh/data
164 mountInitPath: pmsh
165 config:
166 pgUserName: pmsh
167 pgDatabase: pmsh
farida azmycb03ac72021-09-12 16:14:12 +0200168 pgUserExternalSecret: *pgUserCredsSecretName
169
170#Pods Service Account
171serviceAccount:
172 nameOverride: dcae-pmsh
173 roles:
174 - read