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: |
Sylvain Desbureaux | ce3b461 | 2020-03-10 08:45:42 +0100 | [diff] [blame] | 19 | persistence: {} |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 20 | dmaapDrProvName: dmaap-dr-prov |
Krzysztof Opasiak | 58685d0 | 2021-07-29 22:45:45 +0200 | [diff] [blame] | 21 | |
| 22 | ################################################################# |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 23 | # Application configuration defaults. |
| 24 | ################################################################# |
| 25 | # application image |
efiacor | 501c7b6 | 2023-04-25 14:52:01 +0100 | [diff] [blame] | 26 | image: onap/dmaap/datarouter-node:2.1.13 |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 27 | pullPolicy: Always |
| 28 | |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 29 | # default number of instances |
| 30 | replicaCount: 1 |
| 31 | |
| 32 | nodeSelector: {} |
| 33 | |
| 34 | affinity: {} |
| 35 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 36 | # application configuration - see parent values chart |
| 37 | # dr uses the EELF Logging framework https://github.com/att/EELF |
| 38 | # and supports the following log levels: TRACE, DEBUG, INFO, WARN, ERROR, OFF |
| 39 | logLevel: "DEBUG" |
| 40 | |
| 41 | containerPort: &svc_port 8080 |
| 42 | |
| 43 | service: |
| 44 | type: ClusterIP |
| 45 | name: dmaap-dr-node |
| 46 | ports: |
| 47 | - name: http |
| 48 | port: *svc_port |
| 49 | |
| 50 | ingress: |
| 51 | enabled: false |
| 52 | service: |
| 53 | - baseaddr: "dmaap-dr-node-api" |
| 54 | name: "dmaap-dr-node" |
| 55 | port: *svc_port |
| 56 | config: |
| 57 | ssl: "redirect" |
| 58 | |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 59 | # probe configuration parameters |
| 60 | liveness: |
| 61 | initialDelaySeconds: 30 |
| 62 | periodSeconds: 10 |
| 63 | # necessary to disable liveness probe when setting breakpoints |
| 64 | # in debugger so K8s doesn't restart unresponsive container |
| 65 | enabled: true |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 66 | port: *svc_port |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 67 | |
| 68 | readiness: |
| 69 | initialDelaySeconds: 30 |
| 70 | periodSeconds: 10 |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 71 | port: *svc_port |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 72 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 73 | ## Persist data to a persistent volume |
Fiachra Corcoran | be96655 | 2018-08-07 16:58:45 +0100 | [diff] [blame] | 74 | persistence: |
Sylvain Desbureaux | ce3b461 | 2020-03-10 08:45:42 +0100 | [diff] [blame] | 75 | enabled: true |
efiacor | 4808baa | 2019-03-11 23:36:05 +0000 | [diff] [blame] | 76 | mountPath: /dockerdata-nfs |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 77 | spool: |
| 78 | enabled: true |
| 79 | volumeReclaimPolicy: Retain |
| 80 | accessMode: ReadWriteOnce |
| 81 | mountSubPath: data-router/dr-node/spool-data |
| 82 | size: 2Gi |
| 83 | path: /opt/app/datartr/spool |
| 84 | labels: |
| 85 | app.kubernetes.io/component: spool |
efiacor | 4808baa | 2019-03-11 23:36:05 +0000 | [diff] [blame] | 86 | |
Sylvain Desbureaux | f7768e8 | 2020-03-23 16:48:20 +0100 | [diff] [blame] | 87 | event: |
| 88 | enabled: true |
| 89 | volumeReclaimPolicy: Retain |
| 90 | accessMode: ReadWriteOnce |
| 91 | mountSubPath: data-router/dr-node/event-logs |
| 92 | path: /opt/app/datartr/logs |
| 93 | size: 2Gi |
| 94 | labels: |
| 95 | app.kubernetes.io/component: event-logs |
efiacor | 4808baa | 2019-03-11 23:36:05 +0000 | [diff] [blame] | 96 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 97 | # Resource Limit flavor -By Default using small |
| 98 | flavor: small |
rope252 | f2db5c1 | 2022-01-10 14:15:16 +0000 | [diff] [blame] | 99 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 100 | # Segregation for Different environment (Small and Large) |
| 101 | resources: |
| 102 | small: |
| 103 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 104 | cpu: 999 |
| 105 | memory: 1Gi |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 106 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 107 | cpu: 0.5 |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 108 | memory: 1Gi |
| 109 | large: |
| 110 | limits: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 111 | cpu: 999 |
| 112 | memory: 2Gi |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 113 | requests: |
Andreas Geissler | 555db9c | 2023-06-20 11:38:39 +0200 | [diff] [blame] | 114 | cpu: 1 |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 115 | memory: 2Gi |
Emmett Cox | 87d9abe | 2018-11-26 16:57:27 +0000 | [diff] [blame] | 116 | unlimited: {} |
econwar | 28266fa | 2019-03-05 16:39:00 +0000 | [diff] [blame] | 117 | |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 118 | #Pods Service Account |
| 119 | serviceAccount: |
| 120 | nameOverride: dmaap-dr-node |
| 121 | roles: |
| 122 | - read |
Maciej Wereski | 9075b5c | 2021-11-04 14:01:26 +0000 | [diff] [blame] | 123 | |
efiacor | 2123fec | 2022-12-09 13:40:55 +0000 | [diff] [blame] | 124 | securityContext: |
| 125 | user_id: 1000 |
| 126 | group_id: 1000 |
| 127 | |
| 128 | readinessCheck: |
| 129 | wait_for: |
| 130 | - dmaap-dr-prov |