aboutsummaryrefslogtreecommitdiff
path: root/71rest.yml
diff options
context:
space:
mode:
Diffstat (limited to '71rest.yml')
-rw-r--r--71rest.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/71rest.yml b/71rest.yml
new file mode 100644
index 0000000..8f52b42
--- /dev/null
+++ b/71rest.yml
@@ -0,0 +1,26 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+metadata:
+ name: rest
+ namespace: kafka
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: kafka-rest
+ spec:
+ containers:
+ - name: cp-kafka-rest
+ image: confluentinc/cp-kafka-rest@sha256:aa213c1a67eae6ce9836b52a9b5ecee4d6a0b44f2b9cc69f4e4de85131462f1d
+ env:
+ - name: KAFKA_REST_ZOOKEEPER_CONNECT
+ value: zookeeper:2181
+ - name: KAFKA_REST_HOST_NAME
+ value: rest
+ - name: KAFKA_REST_LISTENERS
+ value: http://0.0.0.0:80
+ - name: KAFKA_REST_SCHEMA_REGISTRY_URL
+ value: http://schemas.kafka.svc.cluster.local:80
+ ports:
+ - containerPort: 80