Skip to content

Commit 3a12d2e

Browse files
committed
Adds schema registry
1 parent 4ece24c commit 3a12d2e

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

60schema-registry.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: apps/v1beta1
2+
kind: Deployment
3+
metadata:
4+
name: schema-registry
5+
namespace: kafka
6+
spec:
7+
replicas: 1
8+
template:
9+
metadata:
10+
labels:
11+
app: schema-registry
12+
spec:
13+
containers:
14+
- name: schema-registry
15+
image: confluentinc/cp-schema-registry@sha256:ac1eb34d9a60ce8904eb1bc01fd94bf1f6513924ca507734679d4b513133714c
16+
env:
17+
- name: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL
18+
value: zookeeper:2181
19+
- name: SCHEMA_REGISTRY_HOST_NAME
20+
value: schema-registry
21+
ports:
22+
- containerPort: 8081

61schema-registry-service.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: schema-registry
5+
namespace: kafka
6+
spec:
7+
ports:
8+
- port: 8081
9+
selector:
10+
app: schema-registry

0 commit comments

Comments
 (0)