Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergioarmgpl/strimzi-kafka-example
https://github.com/sergioarmgpl/strimzi-kafka-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sergioarmgpl/strimzi-kafka-example
- Owner: sergioarmgpl
- License: apache-2.0
- Created: 2024-03-29T00:56:10.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T02:30:28.000Z (9 months ago)
- Last Synced: 2024-04-18T16:59:40.602Z (8 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# STRIMZI KAFKA EXAMPLE
## Strimzi Installation
```
kubectl create namespace kafka
kubectl create -f 'https://strimzi.io/install/latest?namespace=kafka' -n kafka
kubectl get pod -n kafka --watch
kubectl logs deployment/strimzi-cluster-operator -n kafka -f
```
## Kafka Cluster provisioning using Strimzi
```
kubectl apply -f https://strimzi.io/examples/latest/kafka/kafka-persistent-single.yaml -n kafka
kubectl wait kafka/my-cluster --for=condition=Ready --timeout=300s -n kafka
or
watch kubectl get pod -n kafka
```## Build and deploy Consumer Daemon
```
cd src/consumer
/bin/bash build.sh
kubectl apply -f golang-consumer.yaml
```## Build and deploy Producer API
```
cd src/producer
/bin/bash build.sh
kubectl apply -f golang-producer-api.yaml
```# ENJOY IT!
# REFERENCES
- https://strimzi.io/quickstarts/