Skip to content

Commit

Permalink
(chore): Allow passing kafka and zookeeper resource limits via values…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
philkjacobs-nextdoor committed Sep 27, 2024
1 parent f084ab9 commit 04aa29e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/local-kafka/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: local-kafka
description: Local Development spinup of Strimzi-managed Kafka
type: application
version: 0.42.1
version: 0.42.2
appVersion: latest
maintainers:
- name: diranged
Expand Down
8 changes: 8 additions & 0 deletions charts/local-kafka/templates/kafka.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,20 @@ spec:
type: persistent-claim
size: 500Mi
deleteClaim: false
{{ with .Values.kafka.resources }}
resources:
{{ toYaml . | nindent 6 }}
{{ end }}
zookeeper:
replicas: 1
storage:
type: persistent-claim
size: 500Mi
deleteClaim: false
{{ with .Values.zookeeper.resources }}
resources:
{{ toYaml . | nindent 6 }}
{{ end }}
entityOperator:
topicOperator: {}
userOperator: {}
19 changes: 19 additions & 0 deletions charts/local-kafka/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ kafka:
# -- (`str`) Optional value for the kafka cluster pod priority class name
priorityClassName:

# -- Optional resource requirements for the Kafka cluster
resources:
limits:
cpu:
memory:
requests:
cpu:
memory:

zookeeper:
# -- Optional resource requirements for the Kafka cluster
resources:
limits:
cpu:
memory:
requests:
cpu:
memory:

# -- Additional configurable listeners for connecting to brokers.
listeners:
- name: external
Expand Down

0 comments on commit 04aa29e

Please sign in to comment.