Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add provisioner logic to kafka dependency chart #3

Merged
merged 1 commit into from
Nov 10, 2023
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
4 changes: 4 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
{
"path": "@semantic-release/changelog",
"changelogFile": "CHANGELOG.md"
},
"@semantic-release/exec",
{
"prepareCmd": "git push --tags"
}
],
"publish": "@semantic-release/github",
Expand Down
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pipeline {
npm install semantic-release-helm
npm install @semantic-release/git
npm install @semantic-release/github
npm install @semantic-release/exec
npx semantic-release
'''
}
Expand Down
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,44 @@ kafka:
size: 1Gi
serviceAccount:
create: false
provisioning:
enabled: true
numPartitions: 3
replicationFactor: 1
topics:
- name: healthcheck
partitions: 3
replicationFactor: 1
config:
max.message.bytes: 64000
flush.messages: 1
kraft:
enabled: false
zookeeper:
enabled: true
persistence:
size: 1Gi
```

- In order to check the number of partitions created for a particular topic:

```bash
kubectl exec -it <your-kafka-broker-pod-name> -- /bin/bash
# run the following commands once you're inside the pod:
cd /opt/bitnami/kafka/bin/
kafka-topics.sh --describe --bootstrap-server \
<broker-ip-address>:<broker-port-number> \
--topic <topic-name>
# kafka-topics.sh --describe --bootstrap-server \
# infra-helm-release-kafka-broker-1.infra-helm-release-kafka-broker-headless.webapp.svc.cluster.local:9094 \
# --topic healthcheck
```

You should see an output similar to the one shown below:

``` output
Topic: healthcheck TopicId: YcLqdlRVR6yF4kvdf6eXwg PartitionCount: 3 ReplicationFactor: 1 Configs: flush.messages=1,max.message.bytes=64000
Topic: healthcheck Partition: 0 Leader: 102 Replicas: 102 Isr: 102
Topic: healthcheck Partition: 1 Leader: 101 Replicas: 101 Isr: 101
Topic: healthcheck Partition: 2 Leader: 100 Replicas: 100 Isr: 100
```
11 changes: 11 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,17 @@ kafka:
create: false
# rbac:
# create: true
provisioning:
enabled: true
numPartitions: 3
replicationFactor: 1
topics:
- name: healthcheck
partitions: 3
replicationFactor: 1
config:
max.message.bytes: 64000
flush.messages: 1
kraft:
enabled: false
zookeeper:
Expand Down