pramod | ad6382f | 2018-03-28 22:32:00 +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 |
pramod | ad6382f | 2018-03-28 22:32:00 +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 | |
| 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
| 20 | nodePortPrefix: 302 |
Sylvain Desbureaux | 1694e1d | 2020-08-21 09:58:25 +0200 | [diff] [blame] | 21 | readinessImage: onap/oom/readiness:3.0.1 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 22 | loggingRepository: docker.elastic.co |
| 23 | loggingImage: beats/filebeat:5.5.0 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 24 | persistence: {} |
Mandeep Khinda | ca210a9 | 2018-05-14 20:55:52 +0000 | [diff] [blame] | 25 | ubuntuInitRepository: registry.hub.docker.com |
su622b | e10aee3 | 2020-03-10 09:44:35 -0400 | [diff] [blame] | 26 | envsubstImage: dibi/envsubst |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 27 | |
| 28 | ################################################################# |
| 29 | # Application configuration defaults. |
| 30 | ################################################################# |
| 31 | # application image |
sunil unnava | 4b2c4e0 | 2018-08-29 19:11:26 -0400 | [diff] [blame] | 32 | repository: nexus3.onap.org:10001 |
su622b | a386565 | 2020-03-25 17:26:51 -0400 | [diff] [blame] | 33 | image: onap/dmaap/kafka111:1.0.4 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 34 | pullPolicy: Always |
Mandeep Khinda | ca210a9 | 2018-05-14 20:55:52 +0000 | [diff] [blame] | 35 | ubuntuInitImage: oomk8s/ubuntu-init:2.0.0 |
sunil.unnava | 6797005 | 2019-04-10 13:09:52 -0400 | [diff] [blame] | 36 | busyBoxImage: busybox:1.30 |
| 37 | busyBoxRepository: docker.io |
| 38 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 39 | |
| 40 | zookeeper: |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 41 | name: message-router-zookeeper |
| 42 | port: 2181 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 43 | |
su622b | e10aee3 | 2020-03-10 09:44:35 -0400 | [diff] [blame] | 44 | kafka: |
| 45 | heapOptions: -Xmx5G -Xms1G |
| 46 | jaasOptions: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/zk_client_jaas.conf |
| 47 | jaasOptionsAaf: -Djava.security.auth.login.config=/etc/kafka/secrets/jaas/kafka_server_jaas.conf |
| 48 | enableSupport: false |
| 49 | protocolMapAaf: INTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT,EXTERNAL_SASL_PLAINTEXT:SASL_PLAINTEXT |
| 50 | protocolMap: INTERNAL_PLAINTEXT:PLAINTEXT,EXTERNAL_PLAINTEXT:PLAINTEXT |
| 51 | listenersAaf: EXTERNAL_SASL_PLAINTEXT://0.0.0.0:9091,INTERNAL_SASL_PLAINTEXT://0.0.0.0:9092 |
| 52 | listeners: EXTERNAL_PLAINTEXT://0.0.0.0:9091,INTERNAL_PLAINTEXT://0.0.0.0:9092 |
| 53 | authorizer: org.onap.dmaap.kafkaAuthorize.KafkaCustomAuthorizer |
| 54 | saslInterBrokerProtocol: PLAIN |
| 55 | saslMech: PLAIN |
| 56 | interBrokerListernerAaf: INTERNAL_SASL_PLAINTEXT |
| 57 | interBrokerListerner: INTERNAL_PLAINTEXT |
| 58 | |
| 59 | |
| 60 | configurationOverrides: |
| 61 | "offsets.topic.replication.factor": "3" |
| 62 | "log.dirs": "/var/lib/kafka/data" |
| 63 | "log.retention.hours": "168" |
| 64 | "num.partitions": "3" |
| 65 | "offsets.topic.replication.factor": "3" |
| 66 | "transaction.state.log.replication.factor": "1" |
| 67 | "transaction.state.log.min.isr": "1" |
| 68 | "num.recovery.threads.per.data.dir": "5" |
| 69 | "log.retention.hours": "168" |
| 70 | "zookeeper.connection.timeout.ms": "6000" |
| 71 | "default.replication.factor": "3" |
su622b | 08f34d9 | 2020-03-27 10:23:32 -0400 | [diff] [blame] | 72 | "zookeeper.set.acl": "true" |
su622b | e10aee3 | 2020-03-10 09:44:35 -0400 | [diff] [blame] | 73 | |
| 74 | jmx: |
| 75 | port: 5555 |
| 76 | |
| 77 | prometheus: |
| 78 | jmx: |
| 79 | enabled: false |
| 80 | image: solsson/kafka-prometheus-jmx-exporter@sha256 |
| 81 | imageTag: 6f82e2b0464f50da8104acd7363fb9b995001ddff77d248379f8788e78946143 |
| 82 | imageRepository: docker.io |
| 83 | port: 5556 |
| 84 | |
| 85 | jaas: |
| 86 | config: |
| 87 | zkClient: kafka |
| 88 | zkClientPassword: kafka_secret |
| 89 | kafkaAdminUser: admin |
| 90 | kafkaAdminPassword: admin_secret |
| 91 | #kafkaAdminUserExternal: some secret |
| 92 | #zkClientPasswordExternal: some secret |
| 93 | |
| 94 | |
| 95 | secrets: |
| 96 | - uid: zk-client |
| 97 | type: basicAuth |
| 98 | externalSecret: '{{ .Values.jaas.config.zkClientPasswordExternal}}' |
| 99 | login: '{{ .Values.jaas.config.zkClient }}' |
| 100 | password: '{{ .Values.jaas.config.zkClientPassword }}' |
| 101 | passwordPolicy: required |
| 102 | - uid: kafka-admin |
| 103 | type: basicAuth |
| 104 | externalSecret: '{{ .Values.jaas.config.kafkaAdminUserExternal}}' |
| 105 | login: '{{ .Values.jaas.config.kafkaAdminUser }}' |
| 106 | password: '{{ .Values.jaas.config.kafkaAdminPassword }}' |
| 107 | passwordPolicy: required |
| 108 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 109 | # flag to enable debugging - application support required |
| 110 | debugEnabled: false |
| 111 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 112 | # default number of instances |
sunil unnava | b96a391 | 2018-12-06 09:50:39 -0500 | [diff] [blame] | 113 | replicaCount: 3 |
| 114 | |
sunil.unnava | 02f077e | 2019-03-28 20:50:29 -0400 | [diff] [blame] | 115 | |
| 116 | # To access Kafka outside cluster, this value must be set to hard and the number of nodes in K8S cluster must be equal or greater then replica count |
| 117 | podAntiAffinityType: soft |
| 118 | |
sunil unnava | b96a391 | 2018-12-06 09:50:39 -0500 | [diff] [blame] | 119 | # defult partitions |
| 120 | defaultpartitions: 3 |
| 121 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 122 | nodeSelector: {} |
| 123 | |
Matthieu Cauffiez | c3d5a56 | 2019-03-12 11:07:01 -0400 | [diff] [blame] | 124 | nodeAffinity: {} |
| 125 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 126 | affinity: {} |
| 127 | |
Matthieu Cauffiez | 767fd66 | 2019-03-12 13:47:52 -0400 | [diff] [blame] | 128 | tolerations: {} |
| 129 | |
sunil.unnava | 02f077e | 2019-03-28 20:50:29 -0400 | [diff] [blame] | 130 | |
| 131 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 132 | # probe configuration parameters |
| 133 | liveness: |
su622b | e10aee3 | 2020-03-10 09:44:35 -0400 | [diff] [blame] | 134 | initialDelaySeconds: 70 |
| 135 | periodSeconds: 20 |
| 136 | timeoutSeconds: 10 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 137 | # necessary to disable liveness probe when setting breakpoints |
| 138 | # in debugger so K8s doesn't restart unresponsive container |
| 139 | enabled: true |
| 140 | |
| 141 | readiness: |
su622b | e10aee3 | 2020-03-10 09:44:35 -0400 | [diff] [blame] | 142 | initialDelaySeconds: 90 |
| 143 | periodSeconds: 20 |
| 144 | timeoutSeconds: 100 |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 145 | |
| 146 | ## Persist data to a persitent volume |
| 147 | persistence: |
| 148 | enabled: true |
| 149 | |
| 150 | ## A manually managed Persistent Volume and Claim |
| 151 | ## Requires persistence.enabled: true |
| 152 | ## If defined, PVC must be created manually before volume will be bound |
| 153 | # existingClaim: |
| 154 | volumeReclaimPolicy: Retain |
| 155 | |
| 156 | ## database data Persistent Volume Storage Class |
| 157 | ## If defined, storageClassName: <storageClass> |
| 158 | ## If set to "-", storageClassName: "", which disables dynamic provisioning |
| 159 | ## If undefined (the default) or set to null, no storageClassName spec is |
| 160 | ## set, choosing the default provisioner. (gp2 on AWS, standard on |
| 161 | ## GKE, AWS & OpenStack) |
| 162 | ## |
| 163 | # storageClass: "-" |
Sylvain Desbureaux | 18fe1fe | 2019-08-29 17:30:02 +0200 | [diff] [blame] | 164 | accessMode: ReadWriteOnce |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 165 | size: 2Gi |
| 166 | mountPath: /dockerdata-nfs |
| 167 | mountSubPath: message-router/data-kafka |
| 168 | |
| 169 | service: |
sunil.unnava | 02f077e | 2019-03-28 20:50:29 -0400 | [diff] [blame] | 170 | type: NodePort |
Dominic Lunanuova | 1ba2b25 | 2018-04-30 19:01:31 +0000 | [diff] [blame] | 171 | name: message-router-kafka |
| 172 | portName: message-router-kafka |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 173 | internalPort: 9092 |
su622b | e10aee3 | 2020-03-10 09:44:35 -0400 | [diff] [blame] | 174 | internalSSLPort: 9093 |
| 175 | externalPort: 9091 |
sunil.unnava | 02f077e | 2019-03-28 20:50:29 -0400 | [diff] [blame] | 176 | baseNodePort: 30490 |
| 177 | |
Sylvain Desbureaux | 18fe1fe | 2019-08-29 17:30:02 +0200 | [diff] [blame] | 178 | |
pramod | ad6382f | 2018-03-28 22:32:00 +0000 | [diff] [blame] | 179 | |
| 180 | ingress: |
| 181 | enabled: false |
| 182 | |
Prateekinlinux | 9f5dc04 | 2018-09-20 14:08:54 +0000 | [diff] [blame] | 183 | # Resource Limit flavor -By Default using small |
| 184 | flavor: small |
| 185 | # Segregation for Different environment (Small and Large) |
| 186 | resources: |
| 187 | small: |
| 188 | limits: |
| 189 | cpu: 2000m |
| 190 | memory: 4Gi |
| 191 | requests: |
| 192 | cpu: 500m |
| 193 | memory: 1Gi |
| 194 | large: |
| 195 | limits: |
| 196 | cpu: 4000m |
| 197 | memory: 8Gi |
| 198 | requests: |
| 199 | cpu: 1000m |
| 200 | memory: 2Gi |
| 201 | unlimited: {} |