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. |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [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 |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 26 | |
| 27 | ################################################################# |
| 28 | # Filebeat configuration defaults. |
| 29 | ################################################################# |
| 30 | filebeatConfig: |
| 31 | logstashServiceName: log-ls |
| 32 | logstashPort: 5044 |
| 33 | |
| 34 | ################################################################# |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 35 | # Application configuration defaults. |
| 36 | ################################################################# |
| 37 | # application image |
sangeeta.bellara | f24b569 | 2023-04-29 19:18:30 +0530 | [diff] [blame] | 38 | image: onap/org.onap.dcaegen2.services.prh.prh-app-server:1.9.0 |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 39 | pullPolicy: Always |
| 40 | |
| 41 | # log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 42 | # if path is set to null sidecar won't be deployed in spite of |
| 43 | # global.centralizedLoggingEnabled setting. |
| 44 | log: |
| 45 | path: /opt/app/prh/logs |
| 46 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 47 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 48 | secrets: |
| 49 | - uid: &aaiCredsUID aaicreds |
| 50 | type: basicAuth |
| 51 | login: '{{ .Values.aaiCreds.user }}' |
| 52 | password: '{{ .Values.aaiCreds.password }}' |
| 53 | passwordPolicy: required |
| 54 | |
| 55 | # dependencies |
| 56 | readinessCheck: |
| 57 | wait_for: |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 58 | - message-router |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 59 | |
| 60 | # probe configuration |
| 61 | readiness: |
| 62 | initialDelaySeconds: 5 |
| 63 | periodSeconds: 15 |
| 64 | path: /heartbeat |
| 65 | scheme: HTTP |
| 66 | port: 8100 |
| 67 | |
| 68 | # service configuration |
| 69 | service: |
| 70 | type: ClusterIP |
| 71 | name: dcae-prh |
| 72 | ports: |
| 73 | - port: 8100 |
| 74 | name: http |
| 75 | |
AndrewLamb | bd6ff6b | 2023-05-04 15:56:49 +0100 | [diff] [blame] | 76 | serviceMesh: |
| 77 | authorizationPolicy: |
| 78 | authorizedPrincipals: |
| 79 | - serviceAccount: message-router-read |
| 80 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 81 | aaiCreds: |
| 82 | user: AAI |
| 83 | password: AAI |
| 84 | |
| 85 | credentials: |
| 86 | - name: AAI_USER |
| 87 | uid: *aaiCredsUID |
| 88 | key: login |
| 89 | - name: AAI_PASSWORD |
| 90 | uid: *aaiCredsUID |
| 91 | key: password |
| 92 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 93 | # initial application configuration |
| 94 | applicationConfig: |
| 95 | dmaap.dmaapConsumerConfiguration.dmaapContentType: "application/json" |
| 96 | dmaap.dmaapConsumerConfiguration.consumerId: "c12" |
| 97 | dmaap.dmaapConsumerConfiguration.consumerGroup: "OpenDCAE-c12" |
| 98 | dmaap.dmaapConsumerConfiguration.timeoutMs: -1 |
| 99 | dmaap.dmaapProducerConfiguration.dmaapContentType: "application/json" |
| 100 | dmaap.dmaapUpdateProducerConfiguration.dmaapContentType: "application/json" |
rope252 | 5a7fbee | 2022-07-25 20:00:36 +0100 | [diff] [blame] | 101 | aai.aaiClientConfiguration.pnfUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23/network/pnfs/pnf |
| 102 | aai.aaiClientConfiguration.baseUrl: http://aai-internal.onap.svc.cluster.local:80/aai/v23 |
| 103 | aai.aaiClientConfiguration.aaiHost: aai-internal.onap.svc.cluster.local |
| 104 | aai.aaiClientConfiguration.aaiHostPortNumber: 80 |
| 105 | aai.aaiClientConfiguration.aaiProtocol: "http" |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 106 | aai.aaiClientConfiguration.aaiUserName: ${AAI_USER} |
| 107 | aai.aaiClientConfiguration.aaiUserPassword: ${AAI_PASSWORD} |
| 108 | aai.aaiClientConfiguration.aaiIgnoreSslCertificateErrors: true |
Remigiusz Janeczek | 3b9d886 | 2021-08-10 13:14:14 +0200 | [diff] [blame] | 109 | aai.aaiClientConfiguration.aaiBasePath: "/aai/v23" |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 110 | aai.aaiClientConfiguration.aaiPnfPath: "/network/pnfs/pnf" |
Tomasz Wrobel | 57a143b | 2021-08-11 11:55:41 +0200 | [diff] [blame] | 111 | 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] | 112 | aai.aaiClientConfiguration.aaiHeaders: |
| 113 | X-FromAppId: "prh" |
| 114 | X-TransactionId: "9999" |
| 115 | Accept: "application/json" |
| 116 | Real-Time: "true" |
Jack Lucas | f86f629 | 2022-06-08 09:12:29 -0400 | [diff] [blame] | 117 | Authorization: ${AUTH_HDR} |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 118 | security.trustStorePath: "/opt/app/prh/etc/cert/trust.jks" |
| 119 | security.trustStorePasswordPath: "/opt/app/prh/etc/cert/trust.pass" |
| 120 | security.keyStorePath: "/opt/app/prh/etc/cert/cert.jks" |
| 121 | security.keyStorePasswordPath: "/opt/app/prh/etc/cert/jks.pass" |
| 122 | security.enableAaiCertAuth: false |
| 123 | security.enableDmaapCertAuth: false |
| 124 | streams_publishes: |
| 125 | pnf-update: |
| 126 | type: "message_router" |
| 127 | dmaap_info: |
| 128 | topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_UPDATE |
| 129 | pnf-ready: |
| 130 | type: "message_router" |
| 131 | dmaap_info: |
| 132 | topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.PNF_READY |
| 133 | streams_subscribes: |
| 134 | ves-reg-output: |
| 135 | type: "message_router" |
| 136 | dmaap_info: |
| 137 | topic_url: http://message-router.onap.svc.cluster.local:3904/events/unauthenticated.VES_PNFREG_OUTPUT |
| 138 | |
Remigiusz Janeczek | 92231d4 | 2021-08-27 16:41:56 +0200 | [diff] [blame] | 139 | applicationEnv: |
| 140 | CBS_CLIENT_CONFIG_PATH: '/app-config-input/application_config.yaml' |
Jack Lucas | f86f629 | 2022-06-08 09:12:29 -0400 | [diff] [blame] | 141 | AUTH_HDR: '{{ printf "Basic %s" (print .Values.aaiCreds.user ":" .Values.aaiCreds.password | b64enc) }}' |
Remigiusz Janeczek | 92231d4 | 2021-08-27 16:41:56 +0200 | [diff] [blame] | 142 | |
Jack Lucas | d41dbdb | 2021-02-16 11:07:28 -0500 | [diff] [blame] | 143 | # Resource Limit flavor -By Default using small |
| 144 | flavor: small |
| 145 | # Segregation for Different environment (Small and Large) |
| 146 | resources: |
| 147 | small: |
| 148 | limits: |
| 149 | cpu: 2 |
| 150 | memory: 2Gi |
| 151 | requests: |
| 152 | cpu: 1 |
| 153 | memory: 1Gi |
| 154 | large: |
| 155 | limits: |
| 156 | cpu: 4 |
| 157 | memory: 4Gi |
| 158 | requests: |
| 159 | cpu: 2 |
| 160 | memory: 2Gi |
| 161 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 162 | |
| 163 | #Pods Service Account |
| 164 | serviceAccount: |
| 165 | nameOverride: dcae-prh |
| 166 | roles: |
| 167 | - read |