[bitnami/kafka] Modify logsDir to use persistence.mountPath (#11569)

* [bitnami/kafka] Modify logsDir to use persistence.mountPath

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Bump patch version

Signed-off-by: FraPazGal <fdepaz@vmware.com>

* Run README generator

Signed-off-by: FraPazGal <fdepaz@vmware.com>
This commit is contained in:
Francisco de Paz Galán
2022-08-05 13:30:07 +02:00
committed by GitHub
parent c1352d3e3d
commit 98a4d64c41
3 changed files with 4 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ The command removes all the Kubernetes components associated with the chart and
| `logRetentionCheckIntervalMs` | The interval at which log segments are checked to see if they can be deleted | `300000` |
| `logRetentionHours` | The minimum age of a log file to be eligible for deletion due to age | `168` |
| `logSegmentBytes` | The maximum size of a log segment file. When this size is reached a new log segment will be created | `_1073741824` |
| `logsDirs` | A comma separated list of directories under which to store log files | `/bitnami/kafka/data` |
| `logsDirs` | A comma separated list of directories under which to store log files | `/opt/bitnami/kafka/logs` |
| `maxMessageBytes` | The largest record batch size allowed by Kafka | `_1000012` |
| `defaultReplicationFactor` | Default replication factors for automatically created topics | `1` |
| `offsetsTopicReplicationFactor` | The replication factor for the offsets topic | `1` |

View File

@@ -76,8 +76,8 @@ data:
#!/bin/bash
ID="${MY_POD_NAME#"{{ $fullname }}-"}"
if [[ -f "/bitnami/kafka/data/meta.properties" ]]; then
export KAFKA_CFG_BROKER_ID="$(grep "broker.id" /bitnami/kafka/data/meta.properties | awk -F '=' '{print $2}')"
if [[ -f "/bitnami/kafka/logs/meta.properties" ]]; then
export KAFKA_CFG_BROKER_ID="$(grep "broker.id" /bitnami/kafka/logs/meta.properties | awk -F '=' '{print $2}')"
else
export KAFKA_CFG_BROKER_ID="$((ID + {{ .Values.minBrokerId }}))"
fi

View File

@@ -159,7 +159,7 @@ logRetentionHours: 168
logSegmentBytes: _1073741824
## @param logsDirs A comma separated list of directories under which to store log files
##
logsDirs: /bitnami/kafka/data
logsDirs: /opt/bitnami/kafka/logs
## @param maxMessageBytes The largest record batch size allowed by Kafka
##
maxMessageBytes: _1000012