-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema-registry-deployment.yml
42 lines (42 loc) · 1.1 KB
/
schema-registry-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: schema-registry
namespace: kafka-dev
spec:
replicas: 1
selector:
matchLabels:
app: schema-registry
template:
metadata:
labels:
app: schema-registry
spec:
tolerations:
- key: "sku"
operator: "Equal"
value: "generalvm"
effect: "NoSchedule"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: agentpool
operator: In
values:
- customgen
enableServiceLinks: false
containers:
- name: schema-registry
image: confluentinc/cp-schema-registry:7.4.0
env:
- name: SCHEMA_REGISTRY_HOST_NAME
value: schema-registry
- name: SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS
value: "PLAINTEXT://debezium-cluster-kafka-bootstrap:9092"
- name: SCHEMA_REGISTRY_LISTENERS
value: "http://0.0.0.0:8081"
ports:
- containerPort: 8081