diff options
Diffstat (limited to 'avro-tools/schemas.yml')
-rw-r--r-- | avro-tools/schemas.yml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/avro-tools/schemas.yml b/avro-tools/schemas.yml new file mode 100644 index 0000000..b811d17 --- /dev/null +++ b/avro-tools/schemas.yml @@ -0,0 +1,47 @@ +apiVersion: apps/v1beta2 +kind: Deployment +metadata: + name: avro-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 + initialDelaySeconds: 60 + ports: + - containerPort: 80 + volumeMounts: + - name: config + mountPath: /etc/schema-registry + volumes: + - name: config + configMap: + name: avro-tools-config |