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