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
690dfcdc
Commit
690dfcdc
authored
1 year ago
by
David José Araújo Ferreira
Committed by
David José Araújo Ferreira
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
HPA in services
HPA in webui service
parent
5892ca30
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!226
Resolve "Testing configurations for DDOS protection"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
manifests/deviceservice.yaml
+27
-8
27 additions, 8 deletions
manifests/deviceservice.yaml
manifests/monitoringservice.yaml
+27
-8
27 additions, 8 deletions
manifests/monitoringservice.yaml
manifests/webuiservice.yaml
+29
-6
29 additions, 6 deletions
manifests/webuiservice.yaml
with
83 additions
and
22 deletions
manifests/deviceservice.yaml
+
27
−
8
View file @
690dfcdc
...
@@ -70,11 +70,30 @@ spec:
...
@@ -70,11 +70,30 @@ spec:
selector
:
selector
:
app
:
deviceservice
app
:
deviceservice
ports
:
ports
:
-
name
:
grpc
-
name
:
grpc
protocol
:
TCP
protocol
:
TCP
port
:
2020
port
:
2020
targetPort
:
2020
targetPort
:
2020
-
name
:
metrics
-
name
:
metrics
protocol
:
TCP
protocol
:
TCP
port
:
9192
port
:
9192
targetPort
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
deviceservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
deviceservice
minReplicas
:
1
maxReplicas
:
10
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
This diff is collapsed.
Click to expand it.
manifests/monitoringservice.yaml
+
27
−
8
View file @
690dfcdc
...
@@ -65,11 +65,30 @@ spec:
...
@@ -65,11 +65,30 @@ spec:
selector
:
selector
:
app
:
monitoringservice
app
:
monitoringservice
ports
:
ports
:
-
name
:
grpc
-
name
:
grpc
protocol
:
TCP
protocol
:
TCP
port
:
7070
port
:
7070
targetPort
:
7070
targetPort
:
7070
-
name
:
metrics
-
name
:
metrics
protocol
:
TCP
protocol
:
TCP
port
:
9192
port
:
9192
targetPort
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
monitoringservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
monitoringservice
minReplicas
:
1
maxReplicas
:
10
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
This diff is collapsed.
Click to expand it.
manifests/webuiservice.yaml
+
29
−
6
View file @
690dfcdc
...
@@ -111,9 +111,32 @@ spec:
...
@@ -111,9 +111,32 @@ spec:
selector
:
selector
:
app
:
webuiservice
app
:
webuiservice
ports
:
ports
:
-
name
:
webui
-
name
:
webui
port
:
8004
port
:
8004
targetPort
:
8004
targetPort
:
8004
-
name
:
grafana
-
name
:
grafana
port
:
3000
port
:
3000
targetPort
:
3000
targetPort
:
3000
# TESTING
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
webuiservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
webuiservice
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
50
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
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