Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions charts/consumer-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,18 @@ Alternatively, a YAML file that specifies the values for the parameters can be p

### Kafka

| Parameter | Description | Default |
|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| `kafka.bootstrapServers` | Comma separated list of Kafka bootstrap servers to connect to. | |
| `kafka.schemaRegistryUrl` | URL of Schema Registry to connect to. | `null` |
| `kafka.staticMembership` | Whether to use [Kafka Static Group Membership](https://cwiki.apache.org/confluence/display/KAFKA/KIP-345%3A+Introduce+static+membership+protocol+to+reduce+consumer+rebalances). | `false` |
| `kafka.config` | Configurations for your [Kafka Consumer app](https://kafka.apache.org/documentation/#consumerconfigs). | `{}` |
| `kafka.inputTopics` | List of input topics for your consumer application. | `[]` |
| `kafka.labeledInputTopics` | Map of additional labeled input topics if you need to specify multiple topics with different message types. | `{}` |
| `kafka.inputPattern` | Input pattern of topics for your consumer application. | |
| `kafka.labeledInputPatterns` | Map of additional labeled input patterns if you need to specify multiple topics with different message types. | `{}` |
| `kafka.groupId` | Unique group ID for Kafka Consumer. Required for auto-scaling | |
| Parameter | Description | Default |
|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------|
| `kafka.bootstrapServers` | Comma separated list of Kafka bootstrap servers to connect to. | |
| `kafka.schemaRegistryUrl` | URL of Schema Registry to connect to. | `null` |
| `kafka.staticMembership` | Whether to use [Kafka Static Group Membership](https://cwiki.apache.org/confluence/display/KAFKA/KIP-345%3A+Introduce+static+membership+protocol+to+reduce+consumer+rebalances). | `false` |
| `kafka.stateDir` | Directory for app state. | `/state/kafka-consumer` |
| `kafka.config` | Configurations for your [Kafka Consumer app](https://kafka.apache.org/documentation/#consumerconfigs). | `{}` |
| `kafka.inputTopics` | List of input topics for your consumer application. | `[]` |
| `kafka.labeledInputTopics` | Map of additional labeled input topics if you need to specify multiple topics with different message types. | `{}` |
| `kafka.inputPattern` | Input pattern of topics for your consumer application. | |
| `kafka.labeledInputPatterns` | Map of additional labeled input patterns if you need to specify multiple topics with different message types. | `{}` |
| `kafka.groupId` | Unique group ID for Kafka Consumer. Required for auto-scaling | |

### Other

Expand Down
4 changes: 3 additions & 1 deletion charts/consumer-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ spec:
env:
{{- include "kafka-app.common-env" . | nindent 12 }}
{{- include "kafka-app.group-instance-id-env" . | indent 12 }}
- name: KAFKA_STATE_DIR
Comment thread
philipp94831 marked this conversation as resolved.
value: {{ .Values.kafka.stateDir | quote }}
{{- include "kafka-app.input-env" . | indent 12 }}
{{- include "kafka-app.group-id-env" . | indent 12 }}
- name: JAVA_TOOL_OPTIONS
Expand All @@ -25,7 +27,7 @@ spec:
{{- include "kafka-app.volume-mounts" . | indent 12 }}
{{- if and .Values.persistence.enabled .Values.statefulSet }}
- name: datadir
mountPath: /tmp/kafka-consumer
mountPath: {{ .Values.kafka.stateDir | quote }}
{{- end }}
{{- end }}
{{- if or (.Values.jmx.enabled) (.Values.ports) }}
Expand Down
1 change: 1 addition & 0 deletions charts/consumer-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ kafka:
# bootstrapServers: "test:9092"
# schemaRegistryUrl: "url:1234"
staticMembership: false
stateDir: /state/kafka-consumer
config: {}
# max.poll.records: 500
# Note that YAML may convert large integers to scientific notation. Use Strings to avoid this.
Expand Down
29 changes: 15 additions & 14 deletions charts/consumerproducer-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,21 @@ Alternatively, a YAML file that specifies the values for the parameters can be p

### Kafka

| Parameter | Description | Default |
|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|
| `kafka.bootstrapServers` | Comma separated list of Kafka bootstrap servers to connect to. | |
| `kafka.schemaRegistryUrl` | URL of Schema Registry to connect to. | `null` |
| `kafka.staticMembership` | Whether to use [Kafka Static Group Membership](https://cwiki.apache.org/confluence/display/KAFKA/KIP-345%3A+Introduce+static+membership+protocol+to+reduce+consumer+rebalances). | `false` |
| `kafka.config` | Configurations for your Kafka [Consumer](https://kafka.apache.org/documentation/#consumerconfigs) and [Producer](https://kafka.apache.org/documentation/#producerconfigs) app. | `{}` |
| `kafka.inputTopics` | List of input topics for your ConsumerProducer application. | `[]` |
| `kafka.labeledInputTopics` | Map of additional labeled input topics if you need to specify multiple topics with different message types. | `{}` |
| `kafka.inputPattern` | Input pattern of topics for your ConsumerProducer application. | |
| `kafka.labeledInputPatterns` | Map of additional labeled input patterns if you need to specify multiple topics with different message types. | `{}` |
| `kafka.outputTopic` | Output topic for your ConsumerProducer application. | |
| `kafka.labeledOutputTopics` | Map of additional labeled output topics if you need to specify multiple topics with different message types. | `{}` |
| `kafka.errorTopic` | Error topic for your ConsumerProducer application. | |
| `kafka.groupId` | Unique group ID for Kafka ConsumerProducer. Required for auto-scaling | |
| Parameter | Description | Default |
|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------|
| `kafka.bootstrapServers` | Comma separated list of Kafka bootstrap servers to connect to. | |
| `kafka.schemaRegistryUrl` | URL of Schema Registry to connect to. | `null` |
| `kafka.staticMembership` | Whether to use [Kafka Static Group Membership](https://cwiki.apache.org/confluence/display/KAFKA/KIP-345%3A+Introduce+static+membership+protocol+to+reduce+consumer+rebalances). | `false` |
| `kafka.stateDir` | Directory for app state. | `/state/kafka-consumer-producer` |
| `kafka.config` | Configurations for your Kafka [Consumer](https://kafka.apache.org/documentation/#consumerconfigs) and [Producer](https://kafka.apache.org/documentation/#producerconfigs) app. | `{}` |
| `kafka.inputTopics` | List of input topics for your ConsumerProducer application. | `[]` |
| `kafka.labeledInputTopics` | Map of additional labeled input topics if you need to specify multiple topics with different message types. | `{}` |
| `kafka.inputPattern` | Input pattern of topics for your ConsumerProducer application. | |
| `kafka.labeledInputPatterns` | Map of additional labeled input patterns if you need to specify multiple topics with different message types. | `{}` |
| `kafka.outputTopic` | Output topic for your ConsumerProducer application. | |
| `kafka.labeledOutputTopics` | Map of additional labeled output topics if you need to specify multiple topics with different message types. | `{}` |
| `kafka.errorTopic` | Error topic for your ConsumerProducer application. | |
| `kafka.groupId` | Unique group ID for Kafka ConsumerProducer. Required for auto-scaling | |

### Other

Expand Down
4 changes: 3 additions & 1 deletion charts/consumerproducer-app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ spec:
{{- end }}
{{- end }}
{{- include "kafka-app.group-instance-id-env" . | indent 12 }}
- name: KAFKA_STATE_DIR
value: {{ .Values.kafka.stateDir | quote }}
{{- include "kafka-app.input-env" . | indent 12 }}
{{- include "kafka-app.output-env" . | indent 12 }}
{{- include "kafka-app.error-env" . | indent 12 }}
Expand All @@ -37,7 +39,7 @@ spec:
{{- include "kafka-app.volume-mounts" . | indent 12 }}
{{- if and .Values.persistence.enabled .Values.statefulSet }}
- name: datadir
mountPath: /tmp/kafka-streams
mountPath: {{ .Values.kafka.stateDir | quote }}
{{- end }}
{{- end }}
{{- if or (.Values.jmx.enabled) (.Values.ports) }}
Expand Down
1 change: 1 addition & 0 deletions charts/consumerproducer-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ kafka:
# bootstrapServers: "test:9092"
# schemaRegistryUrl: "url:1234"
staticMembership: false
stateDir: /state/kafka-consumer-producer
config: {}
# max.poll.records: 500
# Note that YAML may convert large integers to scientific notation. Use Strings to avoid this.
Expand Down
Loading
Loading