Skip to content

Adds access the avro schema registry from outside of the cluster... #160

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

Closed
wants to merge 1 commit into from
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