Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 1 | # ================================ LICENSE_START ============================= |
| 2 | # ============================================================================ |
vv770d | 62d5378 | 2022-01-03 14:35:11 +0000 | [diff] [blame] | 3 | # Copyright (c) 2021-2022 AT&T Intellectual Property. All rights reserved. |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 4 | # ============================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # ================================= LICENSE_END ============================== |
| 17 | |
| 18 | ################################################################# |
| 19 | # Global Configuration Defaults. |
| 20 | ################################################################# |
| 21 | global: |
| 22 | nodePortPrefix: 302 |
| 23 | nodePortPrefixExt: 304 |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 24 | centralizedLoggingEnabled: false |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 25 | |
| 26 | ################################################################# |
| 27 | # Filebeat Configuration Defaults. |
| 28 | ################################################################# |
| 29 | filebeatConfig: |
| 30 | logstashServiceName: log-ls |
| 31 | logstashPort: 5044 |
| 32 | |
| 33 | ################################################################# |
| 34 | # Secrets Configuration. |
| 35 | ################################################################# |
| 36 | secrets: |
| 37 | - uid: &controllerCredsUID controllercreds |
| 38 | type: basicAuth |
| 39 | login: '{{ .Values.controllerCreds.username }}' |
| 40 | password: '{{ .Values.controllerCreds.password }}' |
| 41 | passwordPolicy: required |
| 42 | |
| 43 | |
| 44 | ################################################################# |
| 45 | # InitContainer Images. |
| 46 | ################################################################# |
| 47 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
Jack Lucas | d263e69 | 2021-08-16 16:02:23 -0400 | [diff] [blame] | 48 | consulLoaderImage: onap/org.onap.dcaegen2.deployments.consul-loader-container:1.1.1 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 49 | |
| 50 | ################################################################# |
| 51 | # Application Configuration Defaults. |
| 52 | ################################################################# |
| 53 | # Application Image |
vv770d | 62d5378 | 2022-01-03 14:35:11 +0000 | [diff] [blame] | 54 | image: onap/org.onap.dcaegen2.collectors.restconfcollector:1.2.6 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 55 | pullPolicy: Always |
| 56 | |
| 57 | # Log directory where logging sidecar should look for log files |
Maciej Wereski | 7000a7c | 2021-12-16 12:24:06 +0100 | [diff] [blame] | 58 | # if path is set to null sidecar won't be deployed in spite of |
| 59 | # global.centralizedLoggingEnabled setting. |
| 60 | log: |
| 61 | path: null # /opt/app/restconfcollector/logs |
| 62 | logConfigMapNamePrefix: '{{ include "common.fullname" . }}' |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 63 | |
| 64 | # Directory where TLS certs should be stored |
| 65 | # if absent, no certs will be retrieved and stored |
| 66 | certDirectory: /opt/app/dcae-certificate |
| 67 | |
| 68 | # TLS role -- set to true if microservice acts as server |
| 69 | # If true, an init container will retrieve a server cert |
| 70 | # and key from AAF and mount them in certDirectory. |
| 71 | tlsServer: true |
| 72 | |
| 73 | # Dependencies |
| 74 | readinessCheck: |
| 75 | wait_for: |
| 76 | - dcae-config-binding-service |
| 77 | - aaf-cm |
| 78 | |
| 79 | # Probe Configuration |
| 80 | readiness: |
| 81 | initialDelaySeconds: 100 |
| 82 | periodSeconds: 60 |
| 83 | timeoutSeconds: 5 |
| 84 | path: /healthcheck |
| 85 | scheme: HTTP |
| 86 | port: 8080 |
| 87 | |
| 88 | |
| 89 | # service configuration |
| 90 | service: |
| 91 | type: NodePort |
| 92 | name: dcae-restconf-collector |
| 93 | ports: |
| 94 | - name: http |
| 95 | port: 8443 |
| 96 | plain_port: 8080 |
| 97 | port_protocol: http |
| 98 | nodePort: 16 |
| 99 | useNodePortExt: true |
| 100 | |
| 101 | # AAF Credentials |
| 102 | controllerCreds: |
| 103 | username: access |
| 104 | password: Huawei@123 |
| 105 | |
| 106 | credentials: |
| 107 | - name: CONTROLLER_USERNAME |
| 108 | uid: *controllerCredsUID |
| 109 | key: login |
| 110 | - name: CONTROLLER_PASSWORD |
| 111 | uid: *controllerCredsUID |
| 112 | key: password |
| 113 | |
Vijay Venkatesh Kumar | 5e13811 | 2021-12-14 11:41:36 -0500 | [diff] [blame] | 114 | # application environments |
| 115 | applicationEnv: |
| 116 | LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true' |
| 117 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 118 | # Initial Application Configuration |
| 119 | applicationConfig: |
| 120 | collector.rcc.appDescription: DCAE RestConf Collector Application |
| 121 | collector.rcc.appName: dcae-rcc |
| 122 | collector.rcc.dmaap.streamid: notification=device-registration |
| 123 | collector.rcc.inputQueue.maxPending: '8096' |
| 124 | tomcat.maxthreads: '200' |
| 125 | collector.rcc.service.port: '8080' |
| 126 | collector.rcc.service.secure.port: '8687' |
| 127 | collector.rcc.keystore.file.location: /opt/app/dcae-certificate/cert.jks |
| 128 | collector.rcc.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass |
| 129 | collector.rcc.keystore.alias: dynamically generated |
| 130 | collector.rcc.truststore.file.location: /opt/app/dcae-certificate/trust.jks |
| 131 | collector.rcc.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass |
| 132 | #collector.keystore.file.location: /opt/app/dcae-certificate/external/cert.jks |
| 133 | #collector.keystore.passwordfile: /opt/app/dcae-certificate/external/jks.pass |
| 134 | collector.header.authflag: '0' |
| 135 | collector.header.authlist: sample1,c2FtcGxlMQ== |
| 136 | collector.rcc.service.secure.clientauth: '0' |
| 137 | streams_publishes: |
| 138 | device-registration: |
| 139 | dmaap_info: |
| 140 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT |
| 141 | type: message_router |
| 142 | #rcc_policy: '[{"controller_name":"AccessM&C","controller_restapiUrl":"${CONTROLLER_IP}:{CONTROLLER_PORT}","controller_restapiUser":"${CONTROLLER_USERNAME}","controller_restapiPassword":"${CONTROLLER_PASSWORD}","controller_accessTokenUrl":"/rest/plat/smapp/v1/oauth/token","controller_accessTokenFile":"./etc/access-token.json","controller_accessTokenMethod":"put","controller_subsMethod":"post","controller_subscriptionUrl":"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription","controller_disableSsl":"true","event_details":[{"event_name":"ONT_registration","event_description":"ONTregistartionevent","event_sseventUrlEmbed":"true","event_sseventsField":"output.url","event_sseventsUrl":"null","event_subscriptionTemplate":"./etc/ont_registartion_subscription_template.json","event_unSubscriptionTemplate":"./etc/ont_registartion_unsubscription_template.json","event_ruleId":"12345678","modifyData":"true","modifyMethod": "modifyOntEvent","userData": "remote_id=AC9.0234.0337;svlan=100;cvlan=10;"}]}]' |
| 143 | rcc_policy: '[{"controller_name":"AccessM&C","controller_restapiUrl":"172.30.0.55:26335","controller_restapiUser":"${CONTROLLER_USERNAME}","controller_restapiPassword":"${CONTROLLER_PASSWORD}","controller_accessTokenUrl":"/rest/plat/smapp/v1/oauth/token","controller_accessTokenFile":"./etc/access-token.json","controller_accessTokenMethod":"put","controller_subsMethod":"post","controller_subscriptionUrl":"/restconf/v1/operations/huawei-nce-notification-action:establish-subscription","controller_disableSsl":"true","event_details":[{"event_name":"ONT_registration","event_description":"ONTregistartionevent","event_sseventUrlEmbed":"true","event_sseventsField":"output.url","event_sseventsUrl":"null","event_subscriptionTemplate":"./etc/ont_registartion_subscription_template.json","event_unSubscriptionTemplate":"./etc/ont_registartion_unsubscription_template.json","event_ruleId":"12345678","modifyData":"true","modifyMethod": "modifyOntEvent","userData": "remote_id=AC9.0234.0337;svlan=100;cvlan=10;"}]}]' |
| 144 | |
| 145 | #applicationEnv: |
| 146 | # CONTROLLER_IP: "172.30.0.55" |
| 147 | # CONTROLLER_PORT: "26335" |
| 148 | |
| 149 | |
| 150 | # Resource Limit Flavor -By Default Using Small |
| 151 | flavor: small |
| 152 | |
| 153 | # Segregation for Different Environment (Small and Large) |
| 154 | resources: |
| 155 | small: |
| 156 | limits: |
| 157 | cpu: 1 |
| 158 | memory: 1Gi |
| 159 | requests: |
| 160 | cpu: 1 |
| 161 | memory: 1Gi |
| 162 | large: |
| 163 | limits: |
| 164 | cpu: 2 |
| 165 | memory: 2Gi |
| 166 | requests: |
| 167 | cpu: 2 |
| 168 | memory: 2Gi |
| 169 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 170 | |
| 171 | #Pods Service Account |
| 172 | serviceAccount: |
| 173 | nameOverride: dcae-restconf-collector |
| 174 | roles: |
| 175 | - read |