From 6f4a0be6d11287883c190b9f8f2283764d9b9367 Mon Sep 17 00:00:00 2001 From: Staffan Olsson Date: Sun, 17 Dec 2017 21:52:58 +0100 Subject: Schema Registry and REST Proxy are generic names, but Avro centric --- avro-tools/schemas.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 avro-tools/schemas.yml (limited to 'avro-tools/schemas.yml') diff --git a/avro-tools/schemas.yml b/avro-tools/schemas.yml new file mode 100644 index 0000000..f425e41 --- /dev/null +++ b/avro-tools/schemas.yml @@ -0,0 +1,46 @@ +apiVersion: apps/v1beta2 +kind: Deployment +metadata: + name: schemas + namespace: kafka +spec: + replicas: 1 + selector: + matchLabels: + app: schema-registry + strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 0 + maxSurge: 1 + template: + metadata: + labels: + app: schema-registry + spec: + containers: + - name: cp + image: solsson/kafka-cp@sha256:2797da107f477ede2e826c29b2589f99f22d9efa2ba6916b63e07c7045e15044 + env: + - name: SCHEMA_REGISTRY_LOG4J_OPTS + value: -Dlog4j.configuration=file:/etc/schema-registry/log4j.properties + command: + - schema-registry-start + - /etc/schema-registry/schema-registry.properties + readinessProbe: + httpGet: + path: / + port: 80 + livenessProbe: + httpGet: + path: / + port: 80 + ports: + - containerPort: 80 + volumeMounts: + - name: config + mountPath: /etc/schema-registry + volumes: + - name: config + configMap: + name: avro-tools-config -- cgit v1.2.3