Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
c13aa29d
Commit
c13aa29d
authored
1 month ago
by
Konstantinos Poulakakis
Browse files
Options
Downloads
Patches
Plain Diff
feat: add metallb configuration for telemetry service.
parent
fa1babd6
No related branches found
No related tags found
1 merge request
!366
feat: new in-band network telemetry collector plugin
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deploy/tfs.sh
+11
-0
11 additions, 0 deletions
deploy/tfs.sh
manifests/telemetryservice.yaml
+1
-1
1 addition, 1 deletion
manifests/telemetryservice.yaml
my_deploy.sh
+5
-0
5 additions, 0 deletions
my_deploy.sh
with
17 additions
and
1 deletion
deploy/tfs.sh
+
11
−
0
View file @
c13aa29d
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
manifests/telemetryservice.yaml
+
1
−
1
View file @
c13aa29d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
my_deploy.sh
+
5
−
0
View file @
c13aa29d
...
@@ -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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment