aboutsummaryrefslogtreecommitdiff
path: root/avro-tools/rest.yml
diff options
context:
space:
mode:
authorsolsson <solsson@gmail.com>2018-02-03 20:39:54 +0100
committerGitHub <noreply@github.com>2018-02-03 20:39:54 +0100
commitea1acda0edc59c670aa5ece60863b7f69839368c (patch)
tree76c52a14a19fccdc4fd58d37e24bd1afa5946d77 /avro-tools/rest.yml
parent85ef561428d2721f03cf3c33b8e277d395ef90e2 (diff)
parent4d26f51626ef5c9bd42db9ff8cc7ed0f42e90b2c (diff)
downloadkubernetes-kafka-ea1acda0edc59c670aa5ece60863b7f69839368c.tar.gz
kubernetes-kafka-ea1acda0edc59c670aa5ece60863b7f69839368c.tar.bz2
kubernetes-kafka-ea1acda0edc59c670aa5ece60863b7f69839368c.zip
Merge pull request #102 from Yolean/1.8-confluent-rest
Schema Registry and REST Proxy as opt-in folder
Diffstat (limited to 'avro-tools/rest.yml')
-rw-r--r--avro-tools/rest.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/avro-tools/rest.yml b/avro-tools/rest.yml
new file mode 100644
index 0000000..be299e6
--- /dev/null
+++ b/avro-tools/rest.yml
@@ -0,0 +1,46 @@
+apiVersion: apps/v1beta2
+kind: Deployment
+metadata:
+ name: avro-rest
+ namespace: kafka
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: rest-proxy
+ strategy:
+ type: RollingUpdate
+ rollingUpdate:
+ maxUnavailable: 0
+ maxSurge: 1
+ template:
+ metadata:
+ labels:
+ app: rest-proxy
+ spec:
+ containers:
+ - name: cp
+ image: solsson/kafka-cp@sha256:2797da107f477ede2e826c29b2589f99f22d9efa2ba6916b63e07c7045e15044
+ env:
+ - name: KAFKAREST_LOG4J_OPTS
+ value: -Dlog4j.configuration=file:/etc/kafka-rest/log4j.properties
+ command:
+ - kafka-rest-start
+ - /etc/kafka-rest/kafka-rest.properties
+ readinessProbe:
+ httpGet:
+ path: /
+ port: 80
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 80
+ ports:
+ - containerPort: 80
+ volumeMounts:
+ - name: config
+ mountPath: /etc/kafka-rest
+ volumes:
+ - name: config
+ configMap:
+ name: avro-tools-config