39 lines
1 KiB
YAML
39 lines
1 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
annotations:
|
||
|
kompose.cmd: kompose --file docker-compose.yml convert
|
||
|
kompose.version: 1.34.0 (cbf2835db)
|
||
|
labels:
|
||
|
app: schema-registry
|
||
|
name: schema-registry
|
||
|
namespace: kafka
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: schema-registry
|
||
|
template:
|
||
|
metadata:
|
||
|
annotations:
|
||
|
kompose.cmd: kompose --file docker-compose.yml convert
|
||
|
kompose.version: 1.34.0 (cbf2835db)
|
||
|
labels:
|
||
|
app: schema-registry
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: schema-registry
|
||
|
image: confluentinc/cp-schema-registry:6.1.1
|
||
|
ports:
|
||
|
- containerPort: 8081
|
||
|
protocol: TCP
|
||
|
env:
|
||
|
- name: SCHEMA_REGISTRY_HOST_NAME
|
||
|
value: schema-registry
|
||
|
- name: SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS
|
||
|
value: kafka-cluster-kafka-plainext-bootstrap:9092
|
||
|
- name: SCHEMA_REGISTRY_LISTENERS
|
||
|
value: http://0.0.0.0:8081
|
||
|
#hostname: schema-registry
|
||
|
#restartPolicy: Always
|