From: garciadeblas Date: Fri, 12 Jun 2020 14:29:48 +0000 (+0000) Subject: Fix bug 1097: added env variables to kafka container X-Git-Tag: release-v8.0-start~19 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9e63737d83bbb79a0ef3fe686371ecaa2ab51a14;p=osm%2Fdevops.git Fix bug 1097: added env variables to kafka container Change-Id: I33365daf8e2bb9c0e7ae117c8414c56b3df03013 Signed-off-by: garciadeblas --- diff --git a/installers/docker/docker-compose.yaml b/installers/docker/docker-compose.yaml index 44fbea66..25ed061e 100644 --- a/installers/docker/docker-compose.yaml +++ b/installers/docker/docker-compose.yaml @@ -60,6 +60,13 @@ services: KAFKA_ADVERTISED_PORT: 9092 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 KAFKA_LOG_RETENTION_HOURS: 24 + KAFKA_BROKER_ID: 1 + KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://:9092 + KAFKA_LISTENERS: PLAINTEXT://:9092 + KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT + KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 + KAFKA_AUTO_CREATE_TOPICS_ENABLE: 'false' + KAFKA_CREATE_TOPICS: 'admin:1:1,users:1:1,projects:1:1,vim_account:1:1,wim_account:1:1,sdn:1:1,k8scluster:1:1,k8srepo:1:1,osmrepos:1:1,vnfd:1:1,nsd:1:1,nst:1:1,pdu:1:1,ns:1:1,nsi:1:1,alarm_request:1:1,alarm_response:1:1' volumes: - /var/run/docker.sock:/var/run/docker.sock healthcheck: diff --git a/installers/docker/osm_pods/kafka.yaml b/installers/docker/osm_pods/kafka.yaml index d52805b5..4052a712 100644 --- a/installers/docker/osm_pods/kafka.yaml +++ b/installers/docker/osm_pods/kafka.yaml @@ -64,6 +64,20 @@ spec: value: zookeeper:2181 - name: KAFKA_LOG_RETENTION_HOURS value: "24" + - name: KAFKA_BROKER_ID + value: "1" + - name: KAFKA_ADVERTISED_LISTENERS + value: "PLAINTEXT://:9092" + - name: KAFKA_LISTENERS: + value: "PLAINTEXT://:9092" + - name: KAFKA_INTER_BROKER_LISTENER_NAME + value: "PLAINTEXT" + - name: KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR + value: "1" + - name: KAFKA_AUTO_CREATE_TOPICS_ENABLE + value: "false" + - name: KAFKA_CREATE_TOPICS: + value: "admin:1:1,users:1:1,projects:1:1,vim_account:1:1,wim_account:1:1,sdn:1:1,k8scluster:1:1,k8srepo:1:1,osmrepos:1:1,vnfd:1:1,nsd:1:1,nst:1:1,pdu:1:1,ns:1:1,nsi:1:1,alarm_request:1:1,alarm_response:1:1" volumeMounts: - name: socket mountPath: /var/run/docker.sock