vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
Durgpal | 7ad4069 | 2018-08-03 07:28:36 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2018 AT&T |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
Jerome Doucerain | d18576b | 2018-03-17 14:21:42 -0400 | [diff] [blame] | 21 | |
Sylvain Desbureaux | e5b6ffc | 2021-02-10 12:11:53 +0100 | [diff] [blame] | 22 | |
| 23 | ################################################################# |
| 24 | # AAF part |
| 25 | ################################################################# |
| 26 | certInitializer: |
| 27 | nameOverride: dmaap-mr-cert-initializer |
| 28 | aafDeployFqi: deployer@people.osaaf.org |
| 29 | aafDeployPass: demo123456! |
| 30 | # aafDeployCredsExternalSecret: some secret |
| 31 | fqdn: dmaap-mr |
| 32 | fqi: dmaapmr@mr.dmaap.onap.org |
| 33 | public_fqdn: mr.dmaap.onap.org |
| 34 | cadi_longitude: "-122.26147" |
| 35 | cadi_latitude: "37.78187" |
| 36 | app_ns: org.osaaf.aaf |
| 37 | credsPath: /opt/app/osaaf/local |
| 38 | appMountPath: /appl/dmaapMR1/bundleconfig/etc/sysprops |
| 39 | fqi_namespace: org.onap.dmaap.mr |
| 40 | aaf_add_config: | |
| 41 | cd {{ .Values.credsPath }} |
| 42 | echo "*** change jks password into shell safe one" |
| 43 | export KEYSTORE_PASSWD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1) |
| 44 | keytool -storepasswd -new "${KEYSTORE_PASSWD}" \ |
| 45 | -storepass "${cadi_keystore_password_jks}" \ |
| 46 | -keystore {{ .Values.fqi_namespace }}.jks |
| 47 | echo "*** set key password as same password as jks keystore password" |
| 48 | keytool -keypasswd -new "${KEYSTORE_PASSWD}" \ |
| 49 | -keystore {{ .Values.fqi_namespace }}.jks \ |
| 50 | -keypass "${cadi_keystore_password_jks}" \ |
| 51 | -storepass "${KEYSTORE_PASSWD}" -alias {{ .Values.fqi }} |
| 52 | echo "*** store the passwords" |
| 53 | echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWD}" > mycreds.prop |
| 54 | echo "KEYSTORE_PASSWORD_P12=${cadi_keystore_password_p12}" >> mycreds.prop |
| 55 | echo "TRUSTSTORE_PASSWORD=${cadi_truststore_password}" >> mycreds.prop |
| 56 | echo "*** give ownership of files to the user" |
| 57 | chown -R 1000 . |
| 58 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 59 | ################################################################# |
| 60 | # Application configuration defaults. |
| 61 | ################################################################# |
| 62 | # application image |
efiacor | fde5336 | 2021-07-22 14:19:38 +0100 | [diff] [blame] | 63 | image: onap/dmaap/dmaap-mr:1.3.0 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 64 | pullPolicy: Always |
| 65 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 66 | kafka: |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 67 | name: message-router-kafka |
| 68 | port: 9092 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 69 | zookeeper: |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 70 | name: message-router-zookeeper |
| 71 | port: 2181 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 72 | |
| 73 | # flag to enable debugging - application support required |
| 74 | debugEnabled: false |
| 75 | |
| 76 | # application configuration |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 77 | config: {} |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 78 | |
| 79 | # default number of instances |
| 80 | replicaCount: 1 |
| 81 | |
| 82 | nodeSelector: {} |
| 83 | |
| 84 | affinity: {} |
| 85 | |
| 86 | # probe configuration parameters |
| 87 | liveness: |
sunil unnava | b96a391 | 2018-12-06 09:50:39 -0500 | [diff] [blame] | 88 | initialDelaySeconds: 70 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 89 | periodSeconds: 10 |
su622b | 8b763cd | 2019-10-14 15:37:37 -0400 | [diff] [blame] | 90 | timeoutSeconds: 1 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 91 | # necessary to disable liveness probe when setting breakpoints |
| 92 | # in debugger so K8s doesn't restart unresponsive container |
Sylvain Desbureaux | be72888 | 2020-03-06 08:58:23 +0100 | [diff] [blame] | 93 | port: api |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 94 | enabled: true |
| 95 | |
| 96 | readiness: |
sunil unnava | b96a391 | 2018-12-06 09:50:39 -0500 | [diff] [blame] | 97 | initialDelaySeconds: 70 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 98 | periodSeconds: 10 |
su622b | 8b763cd | 2019-10-14 15:37:37 -0400 | [diff] [blame] | 99 | timeoutSeconds: 1 |
Sylvain Desbureaux | be72888 | 2020-03-06 08:58:23 +0100 | [diff] [blame] | 100 | port: api |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 101 | |
| 102 | service: |
| 103 | type: NodePort |
| 104 | name: message-router |
Sylvain Desbureaux | be72888 | 2020-03-06 08:58:23 +0100 | [diff] [blame] | 105 | both_tls_and_plain: true |
| 106 | msb: |
gummar | a72e6de | 2020-03-12 11:15:56 +0000 | [diff] [blame] | 107 | - port: 3904 |
| 108 | url: "/" |
| 109 | version: "v1" |
| 110 | protocol: "REST" |
| 111 | visualRange: "1" |
Sylvain Desbureaux | be72888 | 2020-03-06 08:58:23 +0100 | [diff] [blame] | 112 | ports: |
| 113 | - name: api |
| 114 | port: 3905 |
| 115 | plain_port: 3904 |
| 116 | port_protocol: http |
| 117 | nodePort: 26 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 118 | |
su622b | a386565 | 2020-03-25 17:26:51 -0400 | [diff] [blame] | 119 | prometheus: |
| 120 | jmx: |
| 121 | enabled: false |
| 122 | image: solsson/kafka-prometheus-jmx-exporter@sha256 |
| 123 | imageTag: 6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143 |
su622b | a386565 | 2020-03-25 17:26:51 -0400 | [diff] [blame] | 124 | port: 5556 |
| 125 | targetPort: 5555 |
| 126 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 127 | ingress: |
| 128 | enabled: false |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 129 | service: |
| 130 | - baseaddr: "mr.api" |
| 131 | name: "message-router" |
| 132 | port: 3905 |
| 133 | config: |
Sylvain Desbureaux | 12b1833 | 2020-05-06 15:21:31 +0200 | [diff] [blame] | 134 | ssl: "redirect" |
Lucjan Bryndza | 0564965 | 2020-04-29 08:52:33 +0000 | [diff] [blame] | 135 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 136 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 137 | # Resource Limit flavor -By Default using small |
| 138 | flavor: small |
| 139 | # Segregation for Different environment (Small and Large) |
| 140 | resources: |
| 141 | small: |
| 142 | limits: |
| 143 | cpu: 2000m |
| 144 | memory: 4Gi |
| 145 | requests: |
| 146 | cpu: 500m |
| 147 | memory: 1Gi |
| 148 | large: |
| 149 | limits: |
| 150 | cpu: 4000m |
| 151 | memory: 8Gi |
| 152 | requests: |
| 153 | cpu: 1000m |
| 154 | memory: 2Gi |
| 155 | unlimited: {} |
farida azmy | 13388ba | 2021-03-17 11:33:28 +0200 | [diff] [blame] | 156 | |
| 157 | #Pods Service Account |
| 158 | serviceAccount: |
| 159 | nameOverride: message-router |
| 160 | roles: |
| 161 | - read |