forked from acryldata/datahub-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema-registry.yaml
61 lines (54 loc) · 1.29 KB
/
schema-registry.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# schema-registry.yaml
---
apiVersion: v1
kind: Service
metadata:
name: schema-registry
spec:
ports:
- name: schema-registry
port: 8081
targetPort: 8081
selector:
app: schema-registry
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: schema-registry
spec:
replicas: 1
selector:
matchLabels:
app: schema-registry
template:
metadata:
labels:
app: schema-registry
spec:
containers:
- name: schema-registry
image: confluentinc/cp-schema-registry:6.1.1 # Replace with the desired Schema Registry version
ports:
- containerPort: 8081
env:
- name: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL
value: "zookeeper-service:2181" # Replace with the Zookeeper connection URL
- name: SCHEMA_REGISTRY_HOST_NAME
value: schema-registry
- name: SCHEMA_REGISTRY_LISTENERS
value: "http://0.0.0.0:8081"
---
# If you don't have Zookeeper and Kafka deployed yet, you can use the Confluent Helm chart
# to deploy them as well. Replace the values as needed.
# Example Kafka and Zookeeper Helm chart values:
# kafka:
# enabled: true
# replicas: 3
# externalAccess:
# enabled: true
# service:
# type: LoadBalancer
# zookeeper:
# enabled: true
# replicas: 3