Skip to content

Commit 7a5a8c5

Browse files
committed
Avoids the schema-registry service name, becuase it interferes ...
with container configuration, as Kubernetes creates the env SCHEMA_REGISTRY_PORT if the service has been created first.
1 parent bc8f518 commit 7a5a8c5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

61schema-registry-service.yml renamed to 60schemas-service.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: Service
33
metadata:
4-
name: schema-registry
4+
name: schemas
55
namespace: kafka
66
spec:
77
ports:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: apps/v1beta1
22
kind: Deployment
33
metadata:
4-
name: schema-registry
4+
name: schemas
55
namespace: kafka
66
spec:
77
replicas: 1
@@ -11,12 +11,12 @@ spec:
1111
app: schema-registry
1212
spec:
1313
containers:
14-
- name: schema-registry
14+
- name: cp-schema-registry
1515
image: confluentinc/cp-schema-registry@sha256:ac1eb34d9a60ce8904eb1bc01fd94bf1f6513924ca507734679d4b513133714c
1616
env:
1717
- name: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL
1818
value: zookeeper:2181
1919
- name: SCHEMA_REGISTRY_HOST_NAME
20-
value: schema-registry
20+
value: schemas
2121
ports:
2222
- containerPort: 8081

0 commit comments

Comments
 (0)