https://github.com/txn2/kwatch
Kafka utility container for Kubernetes
https://github.com/txn2/kwatch
developer-tools kafka kubernetes utility
Last synced: about 2 months ago
JSON representation
Kafka utility container for Kubernetes
- Host: GitHub
- URL: https://github.com/txn2/kwatch
- Owner: txn2
- Created: 2018-08-31T06:38:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-31T17:51:52.000Z (almost 8 years ago)
- Last Synced: 2025-06-29T07:41:29.580Z (12 months ago)
- Topics: developer-tools, kafka, kubernetes, utility
- Language: Go
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka Topic Watcher
Docker utility container to run as a Pod in Kubernetes. The [txn2/kwatch] Pod log display Kakfa messages for a given topic.
Example Pod:
```yaml
apiVersion: v1
kind: Pod
metadata:
name: kafka-kwatch
namespace: the-project
spec:
containers:
- name: kafka-kwatch
image: txn2/kwatch:1.0.1
env:
- name: BROKER
value: "kafka-headless:9092"
- name: TOPIC
value: "some-topic"
# Setting the offset to -1 means to seek to the first offset.
# Setting the offset to -2 means to seek to the last offset.
- name: OFFSET
value: "-2"
- name: PARTITION
value: "0"
```
Tail the kwatch logs:
```bash
kubectl logs -f kafka-kwatch -n the-project
```
[txn2/kwatch]:https://hub.docker.com/r/txn2/kwatch/