denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 1 | # ============= LICENSE_START ================================================ |
| 2 | # ============================================================================ |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 3 | # Copyright (C) 2021-2022 Wipro Limited. |
Jack Lucas | c979732 | 2022-03-18 12:32:59 -0400 | [diff] [blame] | 4 | # Copyright (c) 2022 J. F. Lucas. All rights reserved. |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [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 |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [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: |
| 38 | - uid: &aafCredsUID aafcreds |
| 39 | type: basicAuth |
| 40 | login: '{{ .Values.aafCreds.identity }}' |
| 41 | password: '{{ .Values.aafCreds.password }}' |
| 42 | passwordPolicy: required |
| 43 | - uid: &pgUserCredsSecretUid pg-user-creds |
| 44 | name: &pgUserCredsSecretName '{{ include "common.release" . }}-sliceanalysisms-pg-user-creds' |
| 45 | type: basicAuth |
| 46 | externalSecret: '{{ ternary "" (tpl (default "" .Values.postgres.config.pgUserExternalSecret) .) (hasSuffix "sliceanalysisms-pg-user-creds" .Values.postgres.config.pgUserExternalSecret) }}' |
| 47 | login: '{{ .Values.postgres.config.pgUserName }}' |
| 48 | password: '{{ .Values.postgres.config.pgUserPassword }}' |
| 49 | passwordPolicy: generate |
| 50 | |
| 51 | ################################aafcreds################################# |
| 52 | # InitContainer Images. |
| 53 | ################################################################# |
| 54 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 55 | |
| 56 | ################################################################# |
| 57 | # Application Configuration Defaults. |
| 58 | ################################################################# |
| 59 | # Application Image |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 60 | image: onap/org.onap.dcaegen2.services.components.slice-analysis-ms:1.0.7 |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 61 | |
| 62 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 63 | # if path is set to null sidecar won't be deployed in spite of |
| 64 | # global.centralizedLoggingEnabled setting. |
| 65 | log: |
| 66 | path: /var/log/ONAP/dcaegen2/services/sliceanalysisms |
| 67 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 68 | |
| 69 | # Directory where TLS certs should be stored |
| 70 | # if absent, no certs will be retrieved and stored |
| 71 | certDirectory: /opt/app/sliceanalysisms/etc/cert/ |
| 72 | |
| 73 | # TLS role -- set to true if microservice acts as server |
| 74 | # If true, an init container will retrieve a server cert |
| 75 | # and key from AAF and mount them in certDirectory. |
| 76 | tlsServer: true |
| 77 | |
| 78 | # Dependencies |
| 79 | readinessCheck: |
| 80 | wait_for: |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 81 | - aaf-cm |
| 82 | - &postgresName dcae-sliceanalysisms-postgres |
| 83 | |
| 84 | # Probe Configuration |
| 85 | readiness: |
| 86 | initialDelaySeconds: 60 |
| 87 | periodSeconds: 15 |
| 88 | timeoutSeconds: 1 |
| 89 | path: /healthcheck |
| 90 | scheme: HTTP |
| 91 | port: 8080 |
| 92 | |
| 93 | # Service Configuration |
| 94 | service: |
| 95 | type: ClusterIP |
| 96 | name: dcae-slice-analysis-ms |
| 97 | ports: |
| 98 | - name: https |
| 99 | port: 8080 |
| 100 | port_protocol: http |
| 101 | |
| 102 | # AAF Credentials |
| 103 | aafCreds: |
| 104 | identity: dcae@dcae.onap.org |
| 105 | password: demo123456! |
| 106 | |
| 107 | credentials: |
| 108 | - name: AAF_IDENTITY |
| 109 | uid: *aafCredsUID |
| 110 | key: login |
| 111 | - name: AAF_PASSWORD |
| 112 | uid: *aafCredsUID |
| 113 | key: password |
| 114 | - name: PG_USERNAME |
| 115 | uid: *pgUserCredsSecretUid |
| 116 | key: login |
| 117 | - name: PG_PASSWORD |
| 118 | uid: *pgUserCredsSecretUid |
| 119 | key: password |
| 120 | |
| 121 | # Initial Application Configuration |
| 122 | applicationConfig: |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 123 | postgres.host: dcae-sliceanalysisms-pg-primary |
| 124 | postgres.port: 5432 |
| 125 | postgres.username: ${PG_USERNAME} |
| 126 | postgres.password: ${PG_PASSWORD} |
| 127 | trust_store_path: /opt/app/sliceanalysisms/etc/cert/trust.jks |
| 128 | trust_store_pass_path: /opt/app/sliceanalysisms/etc/cert/trust.pass |
| 129 | sliceanalysisms.pollingInterval: 20 |
| 130 | sliceanalysisms.pollingTimeout: 60 |
| 131 | cbsPollingInterval: 60 |
| 132 | sliceanalysisms.namespace: onap |
| 133 | sliceanalysisms.dmaap.server: ["message-router"] |
| 134 | sliceanalysisms.bufferTime: 60 |
| 135 | sliceanalysisms.cg: sliceanalysisms-cg |
| 136 | sliceanalysisms.cid: sliceanalysisms-cid |
| 137 | sliceanalysisms.configDb.service: http://config-db:8080 |
| 138 | sliceanalysisms.configDbEnabled: true |
| 139 | sliceanalysisms.aai.url: https://aai.onap.svc.cluster.local:8443/aai/v21 |
| 140 | sliceanalysisms.cps.url: https://cps:8088 |
| 141 | sliceanalysisms.samples: 3 |
| 142 | sliceanalysisms.minPercentageChange: 5 |
| 143 | sliceanalysisms.initialDelaySeconds: 120000 |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 144 | sliceanalysisms.rannfnssiDetailsTemplateId: get-rannfnssiid-details |
| 145 | sliceanalysisms.desUrl: http://dl-des:1681/datalake/v1/exposure/pm_data |
| 146 | sliceanalysisms.pmDataDurationInWeeks: 4 |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 147 | streams_publishes: |
| 148 | CL_topic: |
| 149 | type: message-router |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 150 | dmaap_info: |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 151 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_CL_OUTPUT |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 152 | streams_subscribes: |
| 153 | performance_management_topic: |
| 154 | type: message-router |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 155 | dmaap_info: |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 156 | topic_url: http://message-router:3904/events/unauthenticated.PERFORMANCE_MEASUREMENTS |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 157 | intelligent_slicing_topic: |
| 158 | type: message-router |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 159 | dmaap_info: |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 160 | topic_url: http://message-router:3904/events/unauthenticated.ML_RESPONSE_TOPIC |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 161 | dcae_cl_response_topic: |
| 162 | type: message-router |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 163 | dmaap_info: |
Niranjana | c835912 | 2022-03-10 14:38:02 +0000 | [diff] [blame] | 164 | topic_url: http://message-router:3904/events/DCAE_CL_RSP |
denilson.l65 | ce758f8 | 2021-05-25 13:54:50 +0000 | [diff] [blame] | 165 | |
| 166 | applicationEnv: |
| 167 | STANDALONE: 'false' |
| 168 | |
| 169 | # Resource Limit Flavor -By Default Using Small |
| 170 | flavor: small |
| 171 | # Segregation for Different Environment (Small and Large) |
| 172 | resources: |
| 173 | small: |
| 174 | limits: |
| 175 | cpu: 1 |
| 176 | memory: 1Gi |
| 177 | requests: |
| 178 | cpu: 1 |
| 179 | memory: 1Gi |
| 180 | large: |
| 181 | limits: |
| 182 | cpu: 2 |
| 183 | memory: 2Gi |
| 184 | requests: |
| 185 | cpu: 2 |
| 186 | memory: 2Gi |
| 187 | unlimited: {} |
| 188 | |
| 189 | ################################################################# |
| 190 | # Application configuration Overriding Defaults in the Postgres. |
| 191 | ################################################################# |
| 192 | postgres: |
| 193 | nameOverride: *postgresName |
| 194 | service: |
| 195 | name: *postgresName |
| 196 | name2: dcae-sliceanalysisms-pg-primary |
| 197 | name3: dcae-sliceanalysisms-pg-replica |
| 198 | container: |
| 199 | name: |
| 200 | primary: dcae-sliceanalysisms-pg-primary |
| 201 | replica: dcae-sliceanalysisms-pg-replica |
| 202 | persistence: |
| 203 | mountSubPath: sliceanalysisms/data |
| 204 | mountInitPath: sliceanalysisms |
| 205 | config: |
| 206 | pgUserName: sliceanalysisms |
| 207 | pgDatabase: sliceanalysisms |
| 208 | pgUserExternalSecret: *pgUserCredsSecretName |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 209 | |
| 210 | #Pods Service Account |
| 211 | serviceAccount: |
| 212 | nameOverride: dcae-slice-analysis-ms |
| 213 | roles: |
| 214 | - read |