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. |
Jack Lucas | c979732 | 2022-03-18 12:32:59 -0400 | [diff] [blame] | 4 | # Copyright (c) 2022 J. F. Lucas. All rights reserved. |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [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: false |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [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: &controllerCredsUID controllercreds |
| 39 | type: basicAuth |
| 40 | login: '{{ .Values.controllerCreds.username }}' |
| 41 | password: '{{ .Values.controllerCreds.password }}' |
| 42 | passwordPolicy: required |
| 43 | |
| 44 | |
| 45 | ################################################################# |
| 46 | # InitContainer Images. |
| 47 | ################################################################# |
| 48 | tlsImage: onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 49 | |
| 50 | ################################################################# |
| 51 | # Application Configuration Defaults. |
| 52 | ################################################################# |
| 53 | # Application Image |
Vijay Venkatesh Kumar | 0e73b02 | 2022-09-13 12:37:13 -0400 | [diff] [blame] | 54 | image: onap/org.onap.dcaegen2.collectors.restconfcollector:1.3.4 |
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: |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 76 | - aaf-cm |
| 77 | |
| 78 | # Probe Configuration |
| 79 | readiness: |
| 80 | initialDelaySeconds: 100 |
| 81 | periodSeconds: 60 |
| 82 | timeoutSeconds: 5 |
| 83 | path: /healthcheck |
| 84 | scheme: HTTP |
| 85 | port: 8080 |
| 86 | |
| 87 | |
| 88 | # service configuration |
| 89 | service: |
| 90 | type: NodePort |
| 91 | name: dcae-restconf-collector |
| 92 | ports: |
| 93 | - name: http |
| 94 | port: 8443 |
| 95 | plain_port: 8080 |
| 96 | port_protocol: http |
| 97 | nodePort: 16 |
| 98 | useNodePortExt: true |
| 99 | |
Andreas Geissler | 261763a | 2022-10-17 18:39:54 +0200 | [diff] [blame] | 100 | ingress: |
| 101 | enabled: false |
| 102 | service: |
| 103 | - baseaddr: "dcae-restconf-collector-api" |
| 104 | name: "dcae-restconf-collector" |
| 105 | port: 8443 |
| 106 | plain_port: 8080 |
| 107 | config: |
| 108 | ssl: "redirect" |
| 109 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 110 | # AAF Credentials |
| 111 | controllerCreds: |
| 112 | username: access |
| 113 | password: Huawei@123 |
| 114 | |
| 115 | credentials: |
| 116 | - name: CONTROLLER_USERNAME |
| 117 | uid: *controllerCredsUID |
| 118 | key: login |
| 119 | - name: CONTROLLER_PASSWORD |
| 120 | uid: *controllerCredsUID |
| 121 | key: password |
| 122 | |
Vijay Venkatesh Kumar | 5e13811 | 2021-12-14 11:41:36 -0500 | [diff] [blame] | 123 | # application environments |
| 124 | applicationEnv: |
| 125 | LOG4J_FORMAT_MSG_NO_LOOKUPS: 'true' |
| 126 | |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 127 | # Initial Application Configuration |
| 128 | applicationConfig: |
| 129 | collector.rcc.appDescription: DCAE RestConf Collector Application |
| 130 | collector.rcc.appName: dcae-rcc |
| 131 | collector.rcc.dmaap.streamid: notification=device-registration |
| 132 | collector.rcc.inputQueue.maxPending: '8096' |
| 133 | tomcat.maxthreads: '200' |
| 134 | collector.rcc.service.port: '8080' |
| 135 | collector.rcc.service.secure.port: '8687' |
| 136 | collector.rcc.keystore.file.location: /opt/app/dcae-certificate/cert.jks |
| 137 | collector.rcc.keystore.passwordfile: /opt/app/dcae-certificate/jks.pass |
| 138 | collector.rcc.keystore.alias: dynamically generated |
| 139 | collector.rcc.truststore.file.location: /opt/app/dcae-certificate/trust.jks |
| 140 | collector.rcc.truststore.passwordfile: /opt/app/dcae-certificate/trust.pass |
| 141 | #collector.keystore.file.location: /opt/app/dcae-certificate/external/cert.jks |
| 142 | #collector.keystore.passwordfile: /opt/app/dcae-certificate/external/jks.pass |
| 143 | collector.header.authflag: '0' |
| 144 | collector.header.authlist: sample1,c2FtcGxlMQ== |
| 145 | collector.rcc.service.secure.clientauth: '0' |
| 146 | streams_publishes: |
| 147 | device-registration: |
| 148 | dmaap_info: |
| 149 | topic_url: http://message-router:3904/events/unauthenticated.DCAE_RCC_OUTPUT |
| 150 | type: message_router |
Vijay Venkatesh Kumar | 0e73b02 | 2022-09-13 12:37:13 -0400 | [diff] [blame] | 151 | 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;"}]}]' |
Vijay Venkatesh Kumar | c269b26 | 2021-06-29 13:49:15 -0400 | [diff] [blame] | 152 | |
| 153 | #applicationEnv: |
| 154 | # CONTROLLER_IP: "172.30.0.55" |
| 155 | # CONTROLLER_PORT: "26335" |
| 156 | |
| 157 | |
| 158 | # Resource Limit Flavor -By Default Using Small |
| 159 | flavor: small |
| 160 | |
| 161 | # Segregation for Different Environment (Small and Large) |
| 162 | resources: |
| 163 | small: |
| 164 | limits: |
| 165 | cpu: 1 |
| 166 | memory: 1Gi |
| 167 | requests: |
| 168 | cpu: 1 |
| 169 | memory: 1Gi |
| 170 | large: |
| 171 | limits: |
| 172 | cpu: 2 |
| 173 | memory: 2Gi |
| 174 | requests: |
| 175 | cpu: 2 |
| 176 | memory: 2Gi |
| 177 | unlimited: {} |
farida azmy | cb03ac7 | 2021-09-12 16:14:12 +0200 | [diff] [blame] | 178 | |
| 179 | #Pods Service Account |
| 180 | serviceAccount: |
| 181 | nameOverride: dcae-restconf-collector |
| 182 | roles: |
| 183 | - read |