Skip to content
Snippets Groups Projects
Commit c13aa29d authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

feat: add metallb configuration for telemetry service.

parent fa1babd6
No related branches found
No related tags found
1 merge request!366feat: new in-band network telemetry collector plugin
...@@ -123,6 +123,11 @@ export KFK_SERVER_PORT=${KFK_SERVER_PORT:-"9092"} ...@@ -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. # If not already set, if flag is YES, Apache Kafka will be redeployed and topic will be lost.
export KFK_REDEPLOY=${KFK_REDEPLOY:-""} export KFK_REDEPLOY=${KFK_REDEPLOY:-""}
# ----- Telemetry Config ------------------------------------------------------
# Replace LOAD_BALANCER_IP
export LOAD_BALANCER_IP=${LOAD_BALANCER_IP:-""}
######################################################################################################################## ########################################################################################################################
# Automated steps start here # Automated steps start here
######################################################################################################################## ########################################################################################################################
...@@ -241,6 +246,9 @@ else ...@@ -241,6 +246,9 @@ else
fi fi
printf "\n" 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 for COMPONENT in $TFS_COMPONENTS; do
echo "Processing '$COMPONENT' component..." echo "Processing '$COMPONENT' component..."
...@@ -623,6 +631,9 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui" ...@@ -623,6 +631,9 @@ if [[ "$TFS_COMPONENTS" == *"monitoring"* ]] && [[ "$TFS_COMPONENTS" == *"webui"
printf "\n\n" printf "\n\n"
fi 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..." echo "Pruning Docker Images..."
docker image prune --force docker image prune --force
printf "\n\n" printf "\n\n"
......
...@@ -95,7 +95,7 @@ metadata: ...@@ -95,7 +95,7 @@ metadata:
app: telemetryservice app: telemetryservice
spec: spec:
type: LoadBalancer type: LoadBalancer
loadBalancerIP: 192.168.5.250 loadBalancerIP:
externalTrafficPolicy: Local externalTrafficPolicy: Local
selector: selector:
app: telemetryservice app: telemetryservice
......
...@@ -211,3 +211,8 @@ export KFK_SERVER_PORT="9092" ...@@ -211,3 +211,8 @@ export KFK_SERVER_PORT="9092"
# Set the flag to YES for redeploying of Apache Kafka # Set the flag to YES for redeploying of Apache Kafka
export KFK_REDEPLOY="" export KFK_REDEPLOY=""
# ----- Telemetry Config ------------------------------------------------------
# Replace LOAD_BALANCER_IP
export LOAD_BALANCER_IP="192.168.5.250"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment