diff options
-rw-r--r-- | 60schema-registry.yml | 22 | ||||
-rw-r--r-- | 61schema-registry-service.yml | 10 |
2 files changed, 32 insertions, 0 deletions
diff --git a/60schema-registry.yml b/60schema-registry.yml new file mode 100644 index 0000000..e02fe8b --- /dev/null +++ b/60schema-registry.yml @@ -0,0 +1,22 @@ +apiVersion: apps/v1beta1 +kind: Deployment +metadata: + name: schema-registry + namespace: kafka +spec: + replicas: 1 + template: + metadata: + labels: + app: schema-registry + spec: + containers: + - name: schema-registry + image: confluentinc/cp-schema-registry@sha256:ac1eb34d9a60ce8904eb1bc01fd94bf1f6513924ca507734679d4b513133714c + env: + - name: SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL + value: zookeeper:2181 + - name: SCHEMA_REGISTRY_HOST_NAME + value: schema-registry + ports: + - containerPort: 8081 diff --git a/61schema-registry-service.yml b/61schema-registry-service.yml new file mode 100644 index 0000000..652b224 --- /dev/null +++ b/61schema-registry-service.yml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: schema-registry + namespace: kafka +spec: + ports: + - port: 8081 + selector: + app: schema-registry |