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