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
4d9bce46
Commit
4d9bce46
authored
6 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Pre-merge code cleanup
parent
a106e903
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!257
Resolve "Create QoSProfile component"
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
deploy/tfs.sh
+0
-9
0 additions, 9 deletions
deploy/tfs.sh
manifests/qos_profileservice.yaml
+28
-2
28 additions, 2 deletions
manifests/qos_profileservice.yaml
proto/qos_profile.proto
+6
-6
6 additions, 6 deletions
proto/qos_profile.proto
with
34 additions
and
17 deletions
deploy/tfs.sh
+
0
−
9
View file @
4d9bce46
...
@@ -163,15 +163,6 @@ kubectl create secret generic kfk-kpi-data --namespace ${TFS_K8S_NAMESPACE} --ty
...
@@ -163,15 +163,6 @@ kubectl create secret generic kfk-kpi-data --namespace ${TFS_K8S_NAMESPACE} --ty
--from-literal
=
KFK_SERVER_PORT
=
${
KFK_SERVER_PORT
}
--from-literal
=
KFK_SERVER_PORT
=
${
KFK_SERVER_PORT
}
printf
"
\n
"
printf
"
\n
"
echo
"Create secret with CockroachDB data for QoSProfile"
kubectl create secret generic crdb-qos-profile-data
--namespace
${
TFS_K8S_NAMESPACE
}
--type
=
'Opaque'
\
--from-literal
=
CRDB_NAMESPACE
=
${
CRDB_NAMESPACE
}
\
--from-literal
=
CRDB_SQL_PORT
=
${
CRDB_SQL_PORT
}
\
--from-literal
=
CRDB_DATABASE
=
${
CRDB_DATABASE_QOSPROFILE
}
\
--from-literal
=
CRDB_USERNAME
=
${
CRDB_USERNAME
}
\
--from-literal
=
CRDB_PASSWORD
=
${
CRDB_PASSWORD
}
\
--from-literal
=
CRDB_SSLMODE
=
require
printf
"
\n
"
echo
"Create secret with NATS data"
echo
"Create secret with NATS data"
NATS_CLIENT_PORT
=
$(
kubectl
--namespace
${
NATS_NAMESPACE
}
get service
${
NATS_NAMESPACE
}
-o
'jsonpath={.spec.ports[?(@.name=="client")].port}'
)
NATS_CLIENT_PORT
=
$(
kubectl
--namespace
${
NATS_NAMESPACE
}
get service
${
NATS_NAMESPACE
}
-o
'jsonpath={.spec.ports[?(@.name=="client")].port}'
)
...
...
This diff is collapsed.
Click to expand it.
manifests/qos_profileservice.yaml
+
28
−
2
View file @
4d9bce46
...
@@ -23,6 +23,8 @@ spec:
...
@@ -23,6 +23,8 @@ spec:
#replicas: 1
#replicas: 1
template
:
template
:
metadata
:
metadata
:
annotations
:
config.linkerd.io/skip-outbound-ports
:
"
4222"
labels
:
labels
:
app
:
qos-profileservice
app
:
qos-profileservice
spec
:
spec
:
...
@@ -37,9 +39,11 @@ spec:
...
@@ -37,9 +39,11 @@ spec:
env
:
env
:
-
name
:
LOG_LEVEL
-
name
:
LOG_LEVEL
value
:
"
INFO"
value
:
"
INFO"
-
name
:
CRDB_DATABASE
value
:
"
tfs_qos_profile"
envFrom
:
envFrom
:
-
secretRef
:
-
secretRef
:
name
:
crdb-
qos-profile-
data
name
:
crdb-data
readinessProbe
:
readinessProbe
:
exec
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:20040"
]
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:20040"
]
...
@@ -72,4 +76,26 @@ spec:
...
@@ -72,4 +76,26 @@ spec:
-
name
:
metrics
-
name
:
metrics
protocol
:
TCP
protocol
:
TCP
port
:
9192
port
:
9192
targetPort
:
9192
targetPort
:
9192
\ No newline at end of file
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
qos-profileservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
qos-profileservice
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
This diff is collapsed.
Click to expand it.
proto/qos_profile.proto
+
6
−
6
View file @
4d9bce46
...
@@ -49,10 +49,10 @@ message QoSProfile {
...
@@ -49,10 +49,10 @@ message QoSProfile {
service
QoSProfileService
{
service
QoSProfileService
{
rpc
CreateQoSProfile
(
QoSProfile
)
returns
(
QoSProfile
)
{}
rpc
CreateQoSProfile
(
QoSProfile
)
returns
(
QoSProfile
)
{}
rpc
UpdateQoSProfile
(
QoSProfile
)
returns
(
QoSProfile
)
{}
rpc
UpdateQoSProfile
(
QoSProfile
)
returns
(
QoSProfile
)
{}
rpc
DeleteQoSProfile
(
context.QoSProfileId
)
returns
(
context.Empty
)
{}
rpc
DeleteQoSProfile
(
context.QoSProfileId
)
returns
(
context.Empty
)
{}
rpc
GetQoSProfile
(
context.QoSProfileId
)
returns
(
QoSProfile
)
{}
rpc
GetQoSProfile
(
context.QoSProfileId
)
returns
(
QoSProfile
)
{}
rpc
GetQoSProfiles
(
context.Empty
)
returns
(
stream
QoSProfile
)
{}
rpc
GetQoSProfiles
(
context.Empty
)
returns
(
stream
QoSProfile
)
{}
rpc
GetConstraintListFromQoSProfile
(
QoDConstraintsRequest
)
returns
(
stream
context.Constraint
)
{}
rpc
GetConstraintListFromQoSProfile
(
QoDConstraintsRequest
)
returns
(
stream
context.Constraint
)
{}
}
}
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