Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
efiacor | 7b9a087 | 2019-08-28 21:20:22 +0000 | [diff] [blame] | 19 | loggingDirectory: /var/log/onap/datarouter |
Sylvain Desbureaux | ce3b461 | 2020-03-10 08:45:42 +0100 | [diff] [blame] | 20 | persistence: {} |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 21 | aafEnabled: true |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 22 | |
| 23 | ################################################################# |
| 24 | # Application configuration defaults. |
| 25 | ################################################################# |
| 26 | # application image |
efiacor | a00766f | 2020-04-02 20:00:49 +0100 | [diff] [blame] | 27 | image: onap/dmaap/datarouter-node:2.1.6 |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 28 | pullPolicy: Always |
| 29 | |
| 30 | # flag to enable debugging - application support required |
| 31 | debugEnabled: false |
| 32 | |
| 33 | # application configuration - see parent values chart |
| 34 | |
| 35 | # default number of instances |
| 36 | replicaCount: 1 |
| 37 | |
| 38 | nodeSelector: {} |
| 39 | |
| 40 | affinity: {} |
| 41 | |
| 42 | # probe configuration parameters |
| 43 | liveness: |
| 44 | initialDelaySeconds: 30 |
| 45 | periodSeconds: 10 |
| 46 | # necessary to disable liveness probe when setting breakpoints |
| 47 | # in debugger so K8s doesn't restart unresponsive container |
| 48 | enabled: true |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 49 | port: api |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 50 | |
| 51 | readiness: |
| 52 | initialDelaySeconds: 30 |
| 53 | periodSeconds: 10 |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 54 | port: api |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 55 | |
| 56 | ## Persist data to a persitent volume |
| 57 | persistence: |
Sylvain Desbureaux | ce3b461 | 2020-03-10 08:45:42 +0100 | [diff] [blame] | 58 | enabled: true |
efiacor | 4808baa | 2019-03-11 23:36:05 +0000 | [diff] [blame] | 59 | mountPath: /dockerdata-nfs |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 60 | spool: |
| 61 | enabled: true |
| 62 | volumeReclaimPolicy: Retain |
| 63 | accessMode: ReadWriteOnce |
| 64 | mountSubPath: data-router/dr-node/spool-data |
| 65 | size: 2Gi |
| 66 | path: /opt/app/datartr/spool |
| 67 | labels: |
| 68 | app.kubernetes.io/component: spool |
efiacor | 4808baa | 2019-03-11 23:36:05 +0000 | [diff] [blame] | 69 | |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 70 | event: |
| 71 | enabled: true |
| 72 | volumeReclaimPolicy: Retain |
| 73 | accessMode: ReadWriteOnce |
| 74 | mountSubPath: data-router/dr-node/event-logs |
| 75 | path: /opt/app/datartr/logs |
| 76 | size: 2Gi |
| 77 | labels: |
| 78 | app.kubernetes.io/component: event-logs |
efiacor | 4808baa | 2019-03-11 23:36:05 +0000 | [diff] [blame] | 79 | |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 80 | job: |
| 81 | annotations: |
| 82 | "helm.sh/hook": post-install |
| 83 | "helm.sh/hook-weight": "-2" |
| 84 | "helm.sh/hook-delete-policy": hook-succeeded |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 85 | |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 86 | ################################################################# |
| 87 | # AAF part |
| 88 | ################################################################# |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 89 | aafConfig: |
efiacor | 6ca697d | 2020-03-06 16:30:05 +0000 | [diff] [blame] | 90 | aafDeployFqi: deployer@people.osaaf.org |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 91 | aafDeployPass: demo123456! |
| 92 | fqdn: dmaap-dr-node |
| 93 | fqi: dmaap-dr-node@dmaap-dr.onap.org |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 94 | public_fqdn: dmaap-dr.onap.org |
| 95 | cadi_longitude: 0.0 |
| 96 | cadi_latitude: 0.0 |
| 97 | app_ns: org.osaaf.aaf |
| 98 | permission_user: 1000 |
| 99 | permission_group: 1001 |
| 100 | secret_uid: &aaf_secret_uid dmaap-dr-node-aaf-deploy-creds |
| 101 | credsPath: /opt/app/osaaf/local |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 102 | |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 103 | ################################################################# |
| 104 | # Secrets metaconfig |
| 105 | ################################################################# |
| 106 | secrets: |
| 107 | - uid: *aaf_secret_uid |
| 108 | type: basicAuth |
| 109 | externalSecret: '{{ ternary (tpl (default "" .Values.aafConfig.aafDeployCredsExternalSecret) .) "aafIsDisabled" .Values.global.aafEnabled }}' |
| 110 | login: '{{ .Values.aafConfig.aafDeployFqi }}' |
| 111 | password: '{{ .Values.aafConfig.aafDeployPass }}' |
| 112 | passwordPolicy: required |
efiacor | e62958b | 2019-09-27 16:54:36 +0100 | [diff] [blame] | 113 | |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 114 | ingress: |
| 115 | enabled: false |
Lucjan Bryndza | 554759c | 2019-11-27 15:02:14 +0100 | [diff] [blame] | 116 | service: |
| 117 | - baseaddr: "dmaapdrnode" |
| 118 | name: "dmaap-dr-node" |
| 119 | port: 8443 |
| 120 | config: |
| 121 | ssl: "redirect" |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 122 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 123 | # Resource Limit flavor -By Default using small |
| 124 | flavor: small |
| 125 | # Segregation for Different environment (Small and Large) |
| 126 | resources: |
| 127 | small: |
| 128 | limits: |
| 129 | cpu: 2000m |
| 130 | memory: 4Gi |
| 131 | requests: |
| 132 | cpu: 500m |
| 133 | memory: 1Gi |
| 134 | large: |
| 135 | limits: |
| 136 | cpu: 4000m |
| 137 | memory: 8Gi |
| 138 | requests: |
| 139 | cpu: 1000m |
| 140 | memory: 2Gi |
Emmett Cox | 87d9abe | 2018-11-26 16:57:27 +0000 | [diff] [blame] | 141 | unlimited: {} |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 142 | |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 143 | service: |
| 144 | type: NodePort |
| 145 | name: dmaap-dr-node |
| 146 | useNodePortExt: true |
efiacor | b4ea1d7 | 2020-05-10 15:42:34 +0100 | [diff] [blame] | 147 | both_tls_and_plain: true |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 148 | annotations: |
| 149 | service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" |
| 150 | ports: |
| 151 | - name: api |
| 152 | port: 8443 |
| 153 | plain_port: 8080 |
| 154 | port_protocol: http |
| 155 | nodePort: 94 |
| 156 | |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 157 | config: |
| 158 | # dr node server configuration |
| 159 | dmaapDrNode: |
efiacor | 9ef176c | 2020-02-20 16:50:30 +0000 | [diff] [blame] | 160 | # dr uses the EELF Logging framework https://github.com/att/EELF |
| 161 | # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF |
| 162 | logLevel: "INFO" |