-
Notifications
You must be signed in to change notification settings - Fork 183
/
Copy pathzk-kafka-sr-source.yaml
88 lines (88 loc) · 1.84 KB
/
zk-kafka-sr-source.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
apiVersion: platform.confluent.io/v1beta1
kind: Zookeeper
metadata:
name: zookeeper
namespace: source
spec:
replicas: 3
image:
application: confluentinc/cp-zookeeper:7.9.0
init: confluentinc/confluent-init-container:2.11.0
dataVolumeCapacity: 10Gi
logVolumeCapacity: 10Gi
---
apiVersion: platform.confluent.io/v1beta1
kind: Kafka
metadata:
name: kafka
namespace: source
spec:
replicas: 3
image:
application: confluentinc/cp-server:7.9.0
init: confluentinc/confluent-init-container:2.11.0
dataVolumeCapacity: 10Gi
tls:
autoGeneratedCerts: true
services:
kafkaRest:
authentication:
type: basic
basic:
secretRef: credential
roles:
- Administrators
---
apiVersion: platform.confluent.io/v1beta1
kind: SchemaRegistry
metadata:
name: schemaregistry
namespace: source
spec:
replicas: 2
image:
application: confluentinc/cp-schema-registry:7.9.0
init: confluentinc/confluent-init-container:2.11.0
tls:
autoGeneratedCerts: true
authentication:
type: basic
basic:
secretRef: credential
roles:
- Administrators
dependencies:
kafka:
bootstrapEndpoint: kafka.source.svc.cluster.local:9092
passwordEncoder:
secretRef: password-encoder-secret
enableSchemaExporter: true
---
apiVersion: platform.confluent.io/v1beta1
kind: Schema
metadata:
name: test-schema
namespace: source
spec:
data:
format: avro
configRef: schema-config
---
apiVersion: v1
kind: ConfigMap
metadata:
name: schema-config
namespace: source
data:
schema: |
{
"namespace": "io.confluent.examples.clients.basicavro",
"type": "record",
"name": "Payment",
"fields": [
{"name": "id", "type": "string"},
{"name": "amount", "type": "double"},
{"name": "email", "type": "string"}
]
}
---