openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rab...@apache.org
Subject [incubator-openwhisk-deploy-kube] branch master updated: Switch to vanilla wurstmeister/kafka:0.11.0.1 (#117)
Date Mon, 11 Dec 2017 17:01:55 GMT
This is an automated email from the ASF dual-hosted git repository.

rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-deploy-kube.git


The following commit(s) were added to refs/heads/master by this push:
     new d98c32a  Switch to vanilla wurstmeister/kafka:0.11.0.1 (#117)
d98c32a is described below

commit d98c32ac9dd877c7ed82103c951013c70a30a711
Author: David Grove <dgrove-oss@users.noreply.github.com>
AuthorDate: Mon Dec 11 12:01:52 2017 -0500

    Switch to vanilla wurstmeister/kafka:0.11.0.1 (#117)
    
    We no longer need a custom kafka container; all topics
    are created dynamically by invoker/controller during startup!
    
    Also upgrade from 0.10.2.1 to 0.11.0.1 to track upstream.
---
 kubernetes/kafka/kafka.yml | 31 +++++++++++--------------------
 1 file changed, 11 insertions(+), 20 deletions(-)

diff --git a/kubernetes/kafka/kafka.yml b/kubernetes/kafka/kafka.yml
index 18db28a..19817cf 100644
--- a/kubernetes/kafka/kafka.yml
+++ b/kubernetes/kafka/kafka.yml
@@ -34,33 +34,24 @@ spec:
       containers:
       - name: kafka
         imagePullPolicy: IfNotPresent
-        # custom kafka image. Should be eliminated soon (see issue #26)
-        image: dgrove/whisk_kafka
+        image: wurstmeister/kafka:0.11.0.1
         ports:
         - name: kafka
           containerPort: 9092
         env:
+        - name: "KAFKA_BROKER_ID"
+          value: "0"
         - name: "KAFKA_ADVERTISED_HOST_NAME"
           value: "$(KAFKA_SERVICE_HOST)"
+        - name: "KAFKA_ADVERTISED_PORT"
+          value: "$(KAFKA_SERVICE_PORT_KAFKA)"
+        - name: "KAFKA_HOST_NAME"
+          valueFrom:
+            fieldRef:
+              fieldPath: status.podIP
         - name: "KAFKA_PORT"
           value: "$(KAFKA_SERVICE_PORT_KAFKA)"
 
-        # message settings
-        - name: "REPLICATION_FACTOR"
-          value: "1"
-        - name: "PARTITIONS"
-          value: "1"
-
-        # health topic settings
-        - name: "KAFKA_TOPICS_HEALTH_RETENTIONBYTES"
-          value: "536870912"
-        - name: "KAFKA_TOPICS_HEALTH_RETENTIONMS"
-          value: "1073741824"
-        - name: "KAFKA_TOPICS_HEALTH_SEGMENTBYTES"
-          value: "3600000"
-
         # zookeeper info
-        - name: "ZOOKEEPER_HOST"
-          value: "$(ZOOKEEPER_SERVICE_HOST)"
-        - name: "ZOOKEEPER_PORT"
-          value: "$(ZOOKEEPER_SERVICE_PORT_ZOOKEEPER)"
+        - name: "KAFKA_ZOOKEEPER_CONNECT"
+          value: "$(ZOOKEEPER_SERVICE_HOST):$(ZOOKEEPER_SERVICE_PORT_ZOOKEEPER)"

-- 
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <commits@openwhisk.apache.org>'].

Mime
View raw message