Skip to content
Open
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ ENV KAFKA_VERSION=2.3.0
ENV KAFKA_CLI_DIR=/opt/kafka/bin
ENV PATH=/opt/kafka-toolbox:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
COPY bin /opt/kafka-toolbox
ENTRYPOINT ["tail", "-f", "/dev/null"]
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ them explicitly when you log into the container.

### Run it on Kubernetes

Create single pod - without a deployment:
```
$ kubectl run kafka-toolbox --image=itadventurer/kafka-toolbox:latest --env="KAFKA_BOOTSTRAP_SERVERS={{kafka-url}}" --env="KAFKA_ZOOKEEPER={{zookeeper-url}}"
```

Then:
```
$ kubectl exec -it kafka-toolbox -- /bin/bash
```

**Note:** You can pass additional parameter `--namespace=<your-desired-namespace>` to the above kubectl commands.

Alternatively, you can use the manifest files

1. Download your appropriate yaml file and configure as described below.
2. `kubectl apply -f my.yaml`
3. `kubectl run -it kafka-toolbox bash`
Expand Down Expand Up @@ -107,8 +121,7 @@ For Kubernetes deployments you can use following templates:
* [./assets/toolbox-plaintext-zookeeper-sidecar.yaml](./assets/toolbox-plaintext-zookeeper-sidecar.yaml):
if you use a sidecar to encrypt zookeeper traffic

Do not forget to replace all values in `{{curly-brackets}}` by
appropriate values!
Do not forget to replace all values in `{{curly-brackets}}` by appropriate values!

#### Mutual TLS

Expand Down
3 changes: 0 additions & 3 deletions assets/toolbox-mutual-tls-zookeeper-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ spec:
- name: cluster-ca-cert
mountPath: "/var/private/ssl/kafka-cluster-ca-certs"
readOnly: true
command:
- sleep
- infinity
- name: tls-sidecar
image: 'strimzi/entity-operator-stunnel:0.11.3'
env:
Expand Down
3 changes: 0 additions & 3 deletions assets/toolbox-mutual-tls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ spec:
- name: cluster-ca-cert
mountPath: "/var/private/ssl/kafka-cluster-ca-certs"
readOnly: true
command:
- sleep
- infinity
volumes:
- name: cluster-ca-cert
secret:
Expand Down
3 changes: 0 additions & 3 deletions assets/toolbox-plaintext-zookeeper-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ spec:
- name: KAFKA_ZOOKEEPER
# Do not change! This is the sidecar connection URL
value: "localhost:2181"
command:
- sleep
- infinity
- name: tls-sidecar
image: 'strimzi/entity-operator-stunnel:0.11.3'
env:
Expand Down
3 changes: 0 additions & 3 deletions assets/toolbox-plaintext.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ spec:
value: "{{kafka-url}}"
- name: KAFKA_ZOOKEEPER
value: "{{zookeeper-url}}"
command:
- sleep
- infinity