From 4d1a6cb9ec0dc66cda0cdd2249c5117542f839c7 Mon Sep 17 00:00:00 2001 From: "aravind.est" Date: Tue, 13 Feb 2024 11:24:42 +0000 Subject: [PATCH] Kafka installation namespace set to 'default' Kafka installation set to be done in 'default' namespace. Earlier it has been installed in the default namespace of the kubernetes cluster. ACM and DME participant expects the kafka to be available in 'kakfa.default.svc.cluster.local' Issue-ID: NONRTRIC-975 Change-Id: I008f8bdda518e6d180122c62a6338d4a796302e9 Signed-off-by: aravind.est --- scripts/install/install-acm.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install/install-acm.sh b/scripts/install/install-acm.sh index 7535c1f..9c74142 100755 --- a/scripts/install/install-acm.sh +++ b/scripts/install/install-acm.sh @@ -58,8 +58,12 @@ export WORKSPACE="$CWD/docker" # Kafka installation echo "Installing Confluent kafka" -kubectl apply -f $KAFKA_DIR/zookeeper.yaml -kubectl apply -f $KAFKA_DIR/kafka.yaml +# Using "default" as namespace for kafka installation. As the policy CSIT helm charts contains the namespace "default" inbuilt. +# ACM installation fails to run, If the kubernetes cluster setup with a different default namespace, +# Expected kafka service is "kafka.default.svc.cluster.local" +# This can be removed when the kafka charts provided with "default" namespace or when policy CSIT charts can be configurable with different namespace. +kubectl apply -f $KAFKA_DIR/zookeeper.yaml -n default +kubectl apply -f $KAFKA_DIR/kafka.yaml -n default wait_for_pods_to_be_running echo "Updating policy docker image versions..." -- 2.16.6