Zack Williams | 1125598 | 2018-08-27 14:22:55 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Copyright 2018-present Open Networking Foundation |
| 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 | # Deploy a production ready Kafka with persistent storage |
| 17 | # |
| 18 | # Tested with v0.8.8 of the chart from the helm incubator |
| 19 | # |
| 20 | # ex: |
| 21 | # helm install -f examples/kafka-production.yaml --version 0.8.8 -n cord-kafka incubator/kafka |
| 22 | |
| 23 | # ref: https://kafka.apache.org/documentation/#configuration |
| 24 | |
| 25 | configurationOverrides: |
| 26 | "offsets.topic.replication.factor": 3 |
| 27 | "log.retention.hours": 4 |
Zack Williams | fa441a1 | 2018-09-20 08:51:58 -0700 | [diff] [blame] | 28 | "log.message.timestamp.type": "LogAppendTime" |
| 29 | |
| 30 | # NOTE: The log.message.timestamp.type override causes timestamps set by the |
| 31 | # producer be overridden on the broker. This should be removed once all kafka |
| 32 | # libraries have been updated to use the newer v1 message format that add the |
| 33 | # timestamp to the message. |
| 34 | # |
| 35 | # The `afkak` client in VOLTHA uses the outdated format, and reports -1 as the |
| 36 | # timestamp. |
| 37 | # |
| 38 | # More context: |
| 39 | # https://cwiki.apache.org/confluence/display/KAFKA/KIP-32+-+Add+timestamps+to+Kafka+message |
Zack Williams | 1125598 | 2018-08-27 14:22:55 -0700 | [diff] [blame] | 40 | |
| 41 | replicas: 3 |
| 42 | |
| 43 | persistence: |
| 44 | enabled: true |
| 45 | storageClass: "local-ssd" |
| 46 | size: "10Gi" |
| 47 | |
| 48 | zookeeper: |
| 49 | replicaCount: 3 |
| 50 | persistence: |
| 51 | enabled: true |
| 52 | storageClass: "local-hdd" |
| 53 | size: "10Gi" |