Skip to content
Closed
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ Have a look at:

Available for:

* [Brokers](./outside-services/)
* [Brokers](./outside-services/broker)
* [Schema Registry](./outside-services/schema-registry)

## Fewer than three nodes?

Expand Down
6 changes: 6 additions & 0 deletions outside-services/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
## Expose Kafka outside cluster
For `broker/`

Currently supported for brokers, not zookeeper.

This folder only creates sample services for NodePort access, i.e. inside any firewalls that protect your cluster. Can be switched to LoadBalancer, but then the init script for brokers must be updated to retrieve external names. See discussions around https://github.com/Yolean/kubernetes-kafka/pull/78 for examples.

## Expose Avro Schema Registry outside of cluster
For `schema-registry/`

Allows applications/services outside of the cluster to communicate with the `schema-registry` on port 31111 (default). Used with [avro-tools](../avro-tools/).
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions outside-services/schema-registry/schema-registry-outside.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
kind: Service
apiVersion: v1
metadata:
name: schema-registry-outside
namespace: kafka
spec:
selector:
app: schema-registry
ports:
- protocol: TCP
targetPort: 80
port: 31111
nodePort: 31111
type: NodePort