dgrove-oss commented on a change in pull request #223: Deploy Kafka package and
provider with Helm
URL:
https://github.com/apache/incubator-openwhisk-deploy-kube/pull/223#discussion_r195470745
##########
File path: helm/templates/pkgKafkaProvider.yaml
##########
@@ -0,0 +1,50 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
contributor
+# license agreements; and to You under the Apache License, Version 2.0.
+
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: {{ .Values.kafkaprovider.name | quote }}
+ namespace: {{ .Release.Namespace | quote }}
+ labels:
+ name: nginx
+spec:
+ replicas: {{ .Values.kafkaprovider.replicaCount }}
+ template:
+ metadata:
+ labels:
+ name: {{ .Values.kafkaprovider.name | quote }}
+ spec:
+ restartPolicy: {{ .Values.kafkaprovider.restartPolicy }}
+ initContainers:
+ # The controller must wait for kafka and couchdb to be ready before it
starts
+{{ include "readiness.waitForCouchDB" . | indent 6 }}
+
+ containers:
+ - name: {{ .Values.kafkaprovider.name | quote }}
+ imagePullPolicy: {{ .Values.kafkaprovider.imagePullPolicy | quote }}
+ image: {{ .Values.kafkaprovider.image | quote }}
+ ports:
+ - name: kafkaprovider
+ containerPort: {{ .Values.kafkaprovider.apiPort }}
+ env:
+ - name: "DB_URL"
+ value:
"http://$(COUCHDB_SERVICE_HOST):$(COUCHDB_SERVICE_PORT_COUCHDB)"
Review comment:
to allow external db,
`value: "{{ .Values.db.protocol }}://{{ include "db_host" . }}:{{
.Values.db.port }}"`
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services