diff --git a/README.md b/README.md index bfeefede..42c78df2 100644 --- a/README.md +++ b/README.md @@ -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? diff --git a/outside-services/README.md b/outside-services/README.md index 17a03f49..af6be163 100644 --- a/outside-services/README.md +++ b/outside-services/README.md @@ -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/). \ No newline at end of file diff --git a/outside-services/outside-0.yml b/outside-services/broker/outside-0.yml similarity index 100% rename from outside-services/outside-0.yml rename to outside-services/broker/outside-0.yml diff --git a/outside-services/outside-1.yml b/outside-services/broker/outside-1.yml similarity index 100% rename from outside-services/outside-1.yml rename to outside-services/broker/outside-1.yml diff --git a/outside-services/outside-2.yml b/outside-services/broker/outside-2.yml similarity index 100% rename from outside-services/outside-2.yml rename to outside-services/broker/outside-2.yml diff --git a/outside-services/schema-registry/schema-registry-outside.yml b/outside-services/schema-registry/schema-registry-outside.yml new file mode 100644 index 00000000..b150fd3a --- /dev/null +++ b/outside-services/schema-registry/schema-registry-outside.yml @@ -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 \ No newline at end of file