ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
| 3 | # Copyright (C) 2021 Nordix Foundation. |
Jack Lucas | 64da4e7 | 2023-03-03 14:46:05 -0500 | [diff] [blame] | 4 | # Copyright (c) 2022-2023 J. F. Lucas. All rights reserved. |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 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 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 25 | centralizedLoggingEnabled: true |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Filebeat Configuration Defaults. |
| 29 | ################################################################# |
| 30 | filebeatConfig: |
| 31 | logstashServiceName: log-ls |
| 32 | logstashPort: 5044 |
| 33 | |
| 34 | ################################################################# |
| 35 | # Secrets Configuration. |
| 36 | ################################################################# |
| 37 | secrets: |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 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 | ################################################################# |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 47 | # Application Configuration Defaults. |
| 48 | ################################################################# |
| 49 | # Application Image |
Jack Lucas | 679fa9b | 2023-05-30 12:40:41 -0400 | [diff] [blame] | 50 | image: onap/org.onap.dcaegen2.services.pmsh:2.2.3 |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 51 | pullPolicy: Always |
| 52 | |
| 53 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 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" . }}' |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 59 | |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 60 | # Dependencies |
| 61 | readinessCheck: |
| 62 | wait_for: |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 63 | - &postgresName dcae-pmsh-postgres |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 64 | - message-router |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 65 | |
| 66 | # Probe Configuration |
| 67 | readiness: |
| 68 | initialDelaySeconds: 10 |
| 69 | periodSeconds: 15 |
| 70 | timeoutSeconds: 1 |
| 71 | path: /healthcheck |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 72 | scheme: HTTP |
| 73 | port: 8080 |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 74 | |
| 75 | # Service Configuration |
| 76 | service: |
| 77 | type: ClusterIP |
| 78 | name: dcae-pmsh |
| 79 | ports: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 80 | - name: http |
| 81 | port: 8080 |
| 82 | plain_port: 8080 |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 83 | port_protocol: http |
| 84 | |
AndrewLamb | bd6ff6b | 2023-05-04 15:56:49 +0100 | [diff] [blame] | 85 | serviceMesh: |
| 86 | authorizationPolicy: |
| 87 | authorizedPrincipals: |
| 88 | - serviceAccount: message-router-read |
| 89 | authorizedPrincipalsPostgres: |
| 90 | - serviceAccount: dcae-pmsh-read |
| 91 | |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 92 | # Initial Application Configuration |
| 93 | applicationConfig: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 94 | enable_tls: false |
Jack Lucas | 64da4e7 | 2023-03-03 14:46:05 -0500 | [diff] [blame] | 95 | aaf_identity: dummy_value |
| 96 | aaf_password: dummy_value |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 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: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 114 | topic_url: "http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT" |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 115 | streams_subscribes: |
| 116 | policy_pm_subscriber: |
| 117 | type: message_router |
| 118 | dmaap_info: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 119 | topic_url: "http://message-router:3904/events/unauthenticated.PMSH_CL_INPUT" |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 120 | aai_subscriber: |
| 121 | type: message_router |
| 122 | dmaap_info: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 123 | topic_url: "http://message-router:3904/events/AAI-EVENT" |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 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 |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 133 | PMSH_API_PORT: '8080' |
ajay_dp001 | 80f9f5c | 2021-03-23 21:27:51 +0530 | [diff] [blame] | 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 |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 175 | pgUserExternalSecret: *pgUserCredsSecretName |
| 176 | |
| 177 | #Pods Service Account |
| 178 | serviceAccount: |
| 179 | nameOverride: dcae-pmsh |
| 180 | roles: |
| 181 | - read |