f6782db6c6d415646e160bfba218c27518a51f83
[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.2
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 # Dependencies
61 readinessCheck:
62   wait_for:
63     - &postgresName dcae-pmsh-postgres
64     - message-router
65
66 # Probe Configuration
67 readiness:
68   initialDelaySeconds: 10
69   periodSeconds: 15
70   timeoutSeconds: 1
71   path: /healthcheck
72   scheme: HTTP
73   port: 8080
74
75 # Service Configuration
76 service:
77   type: ClusterIP
78   name: dcae-pmsh
79   ports:
80     - name: http
81       port: 8080
82       plain_port: 8080
83       port_protocol: http
84
85 # Initial Application Configuration
86 applicationConfig:
87   enable_tls: false
88   aaf_identity: dummy_value
89   aaf_password: dummy_value
90   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:
107         topic_url: "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT"
108   streams_subscribes:
109     policy_pm_subscriber:
110       type: message_router
111       dmaap_info:
112         topic_url: "http://message-router:3904/events/unauthenticated.PMSH_CL_INPUT"
113     aai_subscriber:
114       type: message_router
115       dmaap_info:
116         topic_url: "http://message-router:3904/events/AAI-EVENT"
117
118 applicationEnv:
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
126   PMSH_API_PORT: '8080'
127
128 # Resource Limit Flavor -By Default Using Small
129 flavor: small
130
131 # Segregation for Different Environment (Small and Large)
132 resources:
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 #################################################################
152 postgres:
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
168     pgUserExternalSecret: *pgUserCredsSecretName
169
170 #Pods Service Account
171 serviceAccount:
172   nameOverride: dcae-pmsh
173   roles:
174     - read