Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 1 | #============LICENSE_START======================================================== |
| 2 | # ================================================================================ |
Jack Lucas | 64da4e7 | 2023-03-03 14:46:05 -0500 | [diff] [blame] | 3 | # Copyright (c) 2021-2023 J. F. Lucas. All rights reserved. |
Tomasz Wrobel | 0d893db | 2022-02-17 11:50:43 +0100 | [diff] [blame] | 4 | # Copyright (c) 2022 Nokia. All rights reserved. |
sushant53 | d7136f1 | 2024-02-07 19:06:36 +0530 | [diff] [blame^] | 5 | # Copyright (c) 2024 Deutsche Telekom Intellectual Property. All rights reserved. |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | ################################################################# |
| 21 | # Global configuration defaults. |
| 22 | ################################################################# |
| 23 | global: |
| 24 | nodePortPrefix: 302 |
| 25 | nodePortPrefixExt: 304 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 26 | centralizedLoggingEnabled: true |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 27 | |
| 28 | ################################################################# |
| 29 | # Filebeat configuration defaults. |
| 30 | ################################################################# |
| 31 | filebeatConfig: |
| 32 | logstashServiceName: log-ls |
| 33 | logstashPort: 5044 |
| 34 | |
| 35 | ################################################################# |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 36 | # Application configuration defaults. |
| 37 | ################################################################# |
| 38 | # application image |
sushant53 | d7136f1 | 2024-02-07 19:06:36 +0530 | [diff] [blame^] | 39 | image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.10.1 |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 40 | pullPolicy: Always |
| 41 | |
| 42 | # log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 43 | # if path is set to null sidecar won't be deployed in spite of |
| 44 | # global.centralizedLoggingEnabled setting. |
| 45 | log: |
| 46 | path: /opt/app/prh/logs |
| 47 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 48 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 49 | secrets: |
| 50 | - uid: &aaiCredsUID aaicreds |
| 51 | type: basicAuth |
| 52 | login: '{{ .Values.aaiCreds.user }}' |
| 53 | password: '{{ .Values.aaiCreds.password }}' |
| 54 | passwordPolicy: required |
| 55 | |
| 56 | # dependencies |
| 57 | readinessCheck: |
| 58 | wait_for: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 59 | - message-router |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 60 | |
| 61 | # probe configuration |
| 62 | readiness: |
| 63 | initialDelaySeconds: 5 |
| 64 | periodSeconds: 15 |
| 65 | path: /heartbeat |
| 66 | scheme: HTTP |
| 67 | port: 8100 |
| 68 | |
| 69 | # service configuration |
| 70 | service: |
| 71 | type: ClusterIP |
| 72 | name: dcae-prh |
| 73 | ports: |
| 74 | - port: 8100 |
| 75 | name: http |
| 76 | |
AndrewLamb | bd6ff6b | 2023-05-04 15:56:49 +0100 | [diff] [blame] | 77 | serviceMesh: |
| 78 | authorizationPolicy: |
| 79 | authorizedPrincipals: |
| 80 | - serviceAccount: message-router-read |
| 81 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 82 | aaiCreds: |
| 83 | user: AAI |
| 84 | password: AAI |
| 85 | |
| 86 | credentials: |
| 87 | - name: AAI_USER |
| 88 | uid: *aaiCredsUID |
| 89 | key: login |
| 90 | - name: AAI_PASSWORD |
| 91 | uid: *aaiCredsUID |
| 92 | key: password |
| 93 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 94 | # initial application configuration |
| 95 | applicationConfig: |
| 96 | dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json" |
| 97 | dmaap.dmaapConsumerConfiguration.consumerId: "c12" |
| 98 | dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12" |
| 99 | dmaap.dmaapConsumerConfiguration.timeoutMs: -1 |
| 100 | dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json" |
| 101 | dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json" |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 102 | aai.aaiClientConfiguration.pnfUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23/network/pnfs/pnf |
| 103 | aai.aaiClientConfiguration.baseUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23 |
| 104 | aai.aaiClientConfiguration.aaiHost: aai-internal.onap.svc.cluster.local |
| 105 | aai.aaiClientConfiguration.aaiHostPortNumber: 80 |
| 106 | aai.aaiClientConfiguration.aaiProtocol: "http" |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 107 | aai.aaiClientConfiguration.aaiUserName: ${AAI_USER} |
| 108 | aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD} |
| 109 | aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true |
Remigiusz Janeczek | 3b9d886 | 2021-08-10 13:14:14 +0200 | [diff] [blame] | 110 | aai.aaiClientConfiguration.aaiBasePath: "/aai/v23" |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 111 | aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf" |
Tomasz Wrobel | 57a143b | 2021-08-11 11:55:41 +0200 | [diff] [blame] | 112 | aai.aaiClientConfiguration.aaiServiceInstancePath: "/business/customers/customer/{{customer}}/service-subscriptions/service-subscription/{{serviceType}}/service-instances/service-instance/{{serviceInstanceId}}" |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 113 | aai.aaiClientConfiguration.aaiHeaders: |
| 114 | X-FromAppId: "prh" |
| 115 | X-TransactionId: "9999" |
| 116 | Accept: "application/json" |
| 117 | Real-Time: "true" |
Jack Lucas | f86f629 | 2022-06-08 09:12:29 -0400 | [diff] [blame] | 118 | Authorization: ${AUTH_HDR} |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 119 | security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks" |
| 120 | security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass" |
| 121 | security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks" |
| 122 | security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass" |
| 123 | security.enableAaiCertAuth: false |
| 124 | security.enableDmaapCertAuth: false |
| 125 | streams_publishes: |
| 126 | pnf-update: |
| 127 | type: "message_router" |
| 128 | dmaap_info: |
| 129 | topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE |
| 130 | pnf-ready: |
| 131 | type: "message_router" |
| 132 | dmaap_info: |
| 133 | topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY |
| 134 | streams_subscribes: |
| 135 | ves-reg-output: |
| 136 | type: "message_router" |
| 137 | dmaap_info: |
| 138 | topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT |
| 139 | |
Remigiusz Janeczek | 92231d4 | 2021-08-27 16:41:56 +0200 | [diff] [blame] | 140 | applicationEnv: |
| 141 | CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml' |
Jack Lucas | f86f629 | 2022-06-08 09:12:29 -0400 | [diff] [blame] | 142 | AUTH_HDR: '{{ printf "Basic %s" (print .Values.aaiCreds.user ":" .Values.aaiCreds.password | b64enc) }}' |
sushant53 | d7136f1 | 2024-02-07 19:06:36 +0530 | [diff] [blame^] | 143 | BOOTSTRAP_SERVERS: '{{ include "common.release" . }}-strimzi-kafka-bootstrap:9092' |
| 144 | JAAS_CONFIG: |
| 145 | externalSecret: true |
| 146 | externalSecretUid: '{{ include "common.name" . }}-ku' |
| 147 | key: sasl.jaas.config |
| 148 | |
| 149 | # Strimzi Kafka User config |
| 150 | kafkaUser: |
| 151 | acls: |
| 152 | - name: OpenDCAE-c12 |
| 153 | type: group |
| 154 | patternType: literal |
| 155 | operations: [Read] |
| 156 | - name: \"*\" |
| 157 | type: topic |
| 158 | patternType: literal |
| 159 | operations: [DescribeConfigs] |
| 160 | - name: unauthenticated.VES_PNFREG_OUTPUT |
| 161 | type: topic |
| 162 | patternType: literal |
| 163 | operations: [Read] |
| 164 | - name: unauthenticated.PNF_READY |
| 165 | type: topic |
| 166 | patternType: literal |
| 167 | operations: [Write] |
| 168 | - name: unauthenticated.PNF_UPDATE |
| 169 | type: topic |
| 170 | patternType: literal |
| 171 | operations: [Write] |
| 172 | |
| 173 | # Strimzi Kafka Topics |
| 174 | kafkaTopic: |
| 175 | - name: unauthenticated.PNF_READY |
| 176 | strimziTopicName: unauthenticated.pnf-ready |
| 177 | - name: unauthenticated.PNF_UPDATE |
| 178 | strimziTopicName: unauthenticated.pnf-update |
Remigiusz Janeczek | 92231d4 | 2021-08-27 16:41:56 +0200 | [diff] [blame] | 179 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 180 | # Resource Limit flavor -By Default using small |
| 181 | flavor: small |
| 182 | # Segregation for Different environment (Small and Large) |
| 183 | resources: |
| 184 | small: |
| 185 | limits: |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 186 | cpu: 1 |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 187 | memory: 3Gi |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 188 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 189 | cpu: 0.5 |
| 190 | memory: 3Gi |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 191 | large: |
| 192 | limits: |
vladimir turok | db8167b | 2023-09-20 11:09:21 +0200 | [diff] [blame] | 193 | cpu: 2 |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 194 | memory: 6Gi |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 195 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 196 | cpu: 1 |
| 197 | memory: 6Gi |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 198 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 199 | |
| 200 | #Pods Service Account |
| 201 | serviceAccount: |
| 202 | nameOverride: dcae-prh |
| 203 | roles: |
| 204 | - read |