Commit c13aa29d authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

feat: add metallb configuration for telemetry service.

parent fa1babd6
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -123,6 +123,11 @@ export KFK_SERVER_PORT=${KFK_SERVER_PORT:-"9092"}
# If not already set, if flag is YES, Apache Kafka will be redeployed and topic will be lost.
export KFK_REDEPLOY=${KFK_REDEPLOY:-""}

# ----- Telemetry Config ------------------------------------------------------

# Replace LOAD_BALANCER_IP
export LOAD_BALANCER_IP=${LOAD_BALANCER_IP:-""}

########################################################################################################################
# Automated steps start here
########################################################################################################################
@@ -241,6 +246,9 @@ else
fi
printf "\n"

# Before deployment change the telemetry LOAD_BALANCER_IP
sed -i "s|_LOAD_BALANCER_IP_|$LOAD_BALANCER_IP|g" manifests/telemetryservice.yaml

for COMPONENT in $TFS_COMPONENTS; do
    echo "Processing '$COMPONENT' component..."

@@ -623,6 +631,9 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui"
    printf "\n\n"
fi

# Revert _LOAD_BALANCER_IP_ for the next deployment
sed -i "s|$LOAD_BALANCER_IP|_LOAD_BALANCER_IP_|g" manifests/telemetryservice.yaml

echo "Pruning Docker Images..."
docker image prune --force
printf "\n\n"
+1 −1
Original line number Diff line number Diff line
@@ -95,7 +95,7 @@ metadata:
    app: telemetryservice
spec:
  type: LoadBalancer
  loadBalancerIP: 192.168.5.250
  loadBalancerIP: 
  externalTrafficPolicy: Local
  selector:
    app: telemetryservice
+5 −0
Original line number Diff line number Diff line
@@ -211,3 +211,8 @@ export KFK_SERVER_PORT="9092"

# Set the flag to YES for redeploying of Apache Kafka
export KFK_REDEPLOY=""

# ----- Telemetry Config ------------------------------------------------------

# Replace LOAD_BALANCER_IP
export LOAD_BALANCER_IP="192.168.5.250"