You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/01/10 15:06:29 UTC

[GitHub] dgrove-oss commented on a change in pull request #145: WIP: Use YAML files deploy kafka package to OpenWhisk on K8s

dgrove-oss commented on a change in pull request #145: WIP: Use YAML files deploy kafka package to OpenWhisk on K8s
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/145#discussion_r160702946
 
 

 ##########
 File path: kubernetes/package-kafka/kafkaprovider.yml
 ##########
 @@ -0,0 +1,56 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: kafkaprovider
+  namespace: openwhisk
+  labels:
+    name: kafkaprovider
+spec:
+  selector:
+    name: kafkaprovider
+  ports:
+    - port: 5000
+      targetPort: 8091
+      name: kafkaprovider
+---
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+  name: kafkaprovider
+  namespace: openwhisk
+  labels:
+    name: kafkaprovider
+spec:
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        name: kafkaprovider
+    spec:
+      restartPolicy: Always
+
+      containers:
+      - name: kafkaprovider
+        imagePullPolicy: IfNotPresent
+        # custom alarm provider image. Not sure what we want to do with this.
+        image: openwhisk/kafkaprovider
+        ports:
+        - name: kafkaprovider
+          containerPort: 8080
+        env:
+        - name: "DB_URL"
+          value: "http://couchdb.openwhisk:5984"
 
 Review comment:
   kube defines environment variables like these for the hosts/ports of each service.  They are automatically defined in every pod that is created after the service is defined.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services