summaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/aai-kafka-deployment.yaml
diff options
context:
space:
mode:
authorMunir Ahmad <munir.ahmad@bell.ca>2017-08-15 15:36:46 -0400
committerMunir Ahmad <munir.ahmad@bell.ca>2017-08-16 10:34:49 -0400
commit0b1332938385cc534b1f034b73f19c145ead87c6 (patch)
tree8c87c6dee4de1efc439e3d48b95e54f8f833d301 /kubernetes/aai/aai-kafka-deployment.yaml
parentd17accd32f4f7851dbe7b023f1997aa4e17938e8 (diff)
onap 1.1 deployment files work in progress...
issue-id: OOM-66 Change-Id: If6553647343bb07464e8cc8556223f0c7a01f134 Signed-off-by: Munir Ahmad <munir.ahmad@bell.ca>
Diffstat (limited to 'kubernetes/aai/aai-kafka-deployment.yaml')
-rw-r--r--kubernetes/aai/aai-kafka-deployment.yaml75
1 files changed, 75 insertions, 0 deletions
diff --git a/kubernetes/aai/aai-kafka-deployment.yaml b/kubernetes/aai/aai-kafka-deployment.yaml
new file mode 100644
index 0000000000..c7f884defd
--- /dev/null
+++ b/kubernetes/aai/aai-kafka-deployment.yaml
@@ -0,0 +1,75 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: aai-kafka
+spec:
+ selector:
+ matchLabels:
+ app: aai-kafka
+ template:
+ metadata:
+ labels:
+ app: aai-kafka
+ name: aai-kafka
+ spec:
+ containers:
+ - env:
+ - name: KAFKA_ZOOKEEPER_CONNECT
+ value: zookeeper:2181
+ - name: KAFKA_ADVERTISED_HOST_NAME
+ value: kafka
+ - name: KAFKA_BROKER_ID
+ value: 1
+ - name: PATH
+ value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/jdk/bin
+ - name: JAVA_VERSION_MAJOR
+ value: 8
+ - name: JAVA_VERSION_MINOR
+ value: 144
+ - name: JAVA_VERSION_BUILD
+ value: 01
+ - name: JAVA_PACKAGE
+ value: server-jre
+ - name: JAVA_JCE
+ value: standard
+ - name: JAVA_HOME
+ value: /opt/jdk
+ - name: GLIBC_VERSION
+ value: 2.23-r3
+ - name: LANG
+ value: C.UTF-8
+ - name: KAFKA_VERSION
+ value: 0.8.1.1
+ - name: SCALA_VERSION
+ value: 2.9.2
+ - name: KAFKA_HOME
+ value: /opt/kafka_2.9.2-0.8.1.1
+ image: nexus3.onap.org:10001/openecomp/dmaap:latest
+ name: aai-kafka
+ volumeMounts:
+ - mountPath: /start-kafka.sh
+ name: aai-kafka-start
+ - mountPath: /var/run/docker.sock
+ name: aai-kafka-sock
+ - mountPath: /kafka
+ name: aai-kafka-data
+ volumes:
+ - name: aai-kafka-start
+ hostPath:
+ path: /dockerdata/onapdemo/aai/kafka/start
+ - name: aai-kafka-sock
+ hostPath:
+ path: /dockerdata/onapdemo/aai/kafka/sock
+ - name: aai-kafka-data
+ hostPath:
+ path: /dockerdata/onapdemo/aai/kafka/data
+ ports:
+ - containerPort: 9092
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ restartPolicy: Always
+ imagePullSecrets:
+ - name: onap-docker-registry-key