[COMMON] Harmonize resource settings
[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 # 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 serviceMesh:
86   authorizationPolicy:
87     authorizedPrincipals:
88       - serviceAccount: message-router-read
89     authorizedPrincipalsPostgres:
90       - serviceAccount: dcae-pmsh-read
91
92 # Initial Application Configuration
93 applicationConfig:
94   enable_tls: false
95   aaf_identity: dummy_value
96   aaf_password: dummy_value
97   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:
114         topic_url: "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT"
115   streams_subscribes:
116     policy_pm_subscriber:
117       type: message_router
118       dmaap_info:
119         topic_url: "http://message-router:3904/events/unauthenticated.PMSH_CL_INPUT"
120     aai_subscriber:
121       type: message_router
122       dmaap_info:
123         topic_url: "http://message-router:3904/events/AAI-EVENT"
124
125 applicationEnv:
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
133   PMSH_API_PORT: '8080'
134
135 # Resource Limit Flavor -By Default Using Small
136 flavor: small
137
138 # Segregation for Different Environment (Small and Large)
139 resources:
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 #################################################################
159 postgres:
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
175     pgUserExternalSecret: *pgUserCredsSecretName
176
177 #Pods Service Account
178 serviceAccount:
179   nameOverride: dcae-pmsh
180   roles:
181     - read