Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
TFS
controller
Compare revisions
8cd8e0d960c7d0ed2e8e6a1c9aa0faddd397f02c...6c4ef63c949dafdaf42da6b0a121983820e0c3f8
Hide whitespace changes
Inline
Side-by-side
Some changes are not shown.
For a faster browsing experience, only
20 of 406+
files are shown. Download one of the files below to see all changes.
manifests/dltservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,57 +27,57 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
connector
image
:
labs.etsi.org:5050/tfs/controller/dlt-connector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8080
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
## for debug purposes
#- name: DLT_GATEWAY_HOST
# value: "mock-blockchain.tfs-bchain.svc.cluster.local"
#- name: DLT_GATEWAY_PORT
# value: "50051"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
resources
:
requests
:
cpu
:
50m
memory
:
64Mi
limits
:
cpu
:
500m
memory
:
512Mi
-
name
:
gateway
image
:
labs.etsi.org:5050/tfs/controller/dlt-gateway:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
50051
#readinessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
#livenessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
resources
:
requests
:
cpu
:
200m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
-
name
:
connector
image
:
labs.etsi.org:5050/tfs/controller/dlt-connector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8080
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
## for debug purposes
#- name: DLT_GATEWAY_HOST
# value: "mock-blockchain.tfs-bchain.svc.cluster.local"
#- name: DLT_GATEWAY_PORT
# value: "50051"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:8080"
]
resources
:
requests
:
cpu
:
50m
memory
:
64Mi
limits
:
cpu
:
500m
memory
:
512Mi
-
name
:
gateway
image
:
labs.etsi.org:5050/tfs/controller/dlt-gateway:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
50051
#readinessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
#livenessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
resources
:
requests
:
cpu
:
200m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -90,11 +90,11 @@ spec:
selector
:
app
:
dltservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
8080
targetPort
:
8080
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
protocol
:
TCP
port
:
8080
targetPort
:
8080
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
manifests/e2e_orchestratorservice.yaml
0 → 100644
View file @
6c4ef63c
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
e2e-orchestratorservice
spec
:
selector
:
matchLabels
:
app
:
e2e-orchestratorservice
template
:
metadata
:
labels
:
app
:
e2e-orchestratorservice
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/e2e_orchestrator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10050
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10050"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10050"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
e2e-orchestratorservice
labels
:
app
:
e2e-orchestratorservice
spec
:
type
:
ClusterIP
selector
:
app
:
e2e-orchestratorservice
ports
:
-
name
:
grpc
port
:
10050
targetPort
:
10050
-
name
:
metrics
port
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
e2e-orchestratorservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
e2e-orchestratorservice
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
manifests/forecasterservice.yaml
0 → 100644
View file @
6c4ef63c
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
forecasterservice
spec
:
selector
:
matchLabels
:
app
:
forecasterservice
#replicas: 1
template
:
metadata
:
labels
:
app
:
forecasterservice
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/forecaster:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10040
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
FORECAST_TO_HISTORY_RATIO
value
:
"
10"
startupProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10040"
]
failureThreshold
:
30
periodSeconds
:
1
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10040"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10040"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
forecasterservice
labels
:
app
:
forecasterservice
spec
:
type
:
ClusterIP
selector
:
app
:
forecasterservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
10040
targetPort
:
10040
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
forecasterservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
forecasterservice
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
manifests/interdomainservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,30 +27,30 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/interdomain:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10010
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
TOPOLOGY_ABSTRACTOR
value
:
"
DISABLE"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10010"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10010"
]
resources
:
requests
:
cpu
:
250m
memory
:
64Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/interdomain:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10010
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
TOPOLOGY_ABSTRACTOR
value
:
"
DISABLE"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10010"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10010"
]
resources
:
requests
:
cpu
:
250m
memory
:
64Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -63,11 +63,11 @@ spec:
selector
:
app
:
interdomainservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
10010
targetPort
:
10010
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
protocol
:
TCP
port
:
10010
targetPort
:
10010
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
manifests/l3_attackmitigatorservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,28 +27,28 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/l3_attackmitigator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10002
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
DEBUG
"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10002"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10002"
]
resources
:
requests
:
cpu
:
250m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/l3_attackmitigator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10002
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO
"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10002"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10002"
]
resources
:
requests
:
cpu
:
250m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -61,13 +61,13 @@ spec:
selector
:
app
:
l3-attackmitigatorservice
ports
:
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10002
targetPort
:
10002
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10002
targetPort
:
10002
---
apiVersion
:
autoscaling/v2
...
...
@@ -82,12 +82,12 @@ spec:
minReplicas
:
1
maxReplicas
:
10
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
behavior
:
scaleDown
:
stabilizationWindowSeconds
:
120
...
...
@@ -100,9 +100,9 @@ metadata:
labels
:
app
:
l3-attackmitigatorservice
#release: prometheus
#release: prom # name of the release
# ( VERY IMPORTANT: You need to know the correct release name by viewing
# the servicemonitor of Prometheus itself: Without the correct name,
#release: prom # name of the release
# ( VERY IMPORTANT: You need to know the correct release name by viewing
# the servicemonitor of Prometheus itself: Without the correct name,
# Prometheus cannot identify the metrics of the Flask app as the target.)
spec
:
selector
:
...
...
@@ -112,11 +112,11 @@ spec:
app
:
l3-attackmitigatorservice
# same as above
#release: prometheus # same as above
endpoints
:
-
port
:
metrics
# named port in target app
scheme
:
http
path
:
/metrics
# path to scrape
interval
:
5s
# scrape interval
-
port
:
metrics
# named port in target app
scheme
:
http
path
:
/metrics
# path to scrape
interval
:
5s
# scrape interval
namespaceSelector
:
any
:
false
matchNames
:
-
tfs
# namespace where the app is running
-
tfs
# namespace where the app is running
manifests/l3_centralizedattackdetectorservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,36 +27,36 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/l3_centralizedattackdetector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10001
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
DEBUG
"
-
name
:
BATCH_SIZE
value
:
"
256"
-
name
:
CAD_CLASSIFICATION_THRESHOLD
value
:
"
0.5"
-
name
:
MONITORED_KPIS_TIME_INTERVAL_AGG
value
:
"
60"
-
name
:
TEST_ML_MODEL
value
:
"
0"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10001"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10001"
]
resources
:
requests
:
cpu
:
250m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/l3_centralizedattackdetector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10001
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO
"
-
name
:
BATCH_SIZE
value
:
"
256"
-
name
:
CAD_CLASSIFICATION_THRESHOLD
value
:
"
0.5"
-
name
:
MONITORED_KPIS_TIME_INTERVAL_AGG
value
:
"
60"
-
name
:
TEST_ML_MODEL
value
:
"
0"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10001"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10001"
]
resources
:
requests
:
cpu
:
250m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -69,13 +69,13 @@ spec:
selector
:
app
:
l3-centralizedattackdetectorservice
ports
:
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10001
targetPort
:
10001
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10001
targetPort
:
10001
---
apiVersion
:
autoscaling/v2
...
...
@@ -90,12 +90,12 @@ spec:
minReplicas
:
1
maxReplicas
:
10
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
behavior
:
scaleDown
:
stabilizationWindowSeconds
:
120
...
...
@@ -107,9 +107,9 @@ metadata:
labels
:
app
:
l3-centralizedattackdetectorservice
#release: prometheus
#release: prom # name of the release
# ( VERY IMPORTANT: You need to know the correct release name by viewing
# the servicemonitor of Prometheus itself: Without the correct name,
#release: prom # name of the release
# ( VERY IMPORTANT: You need to know the correct release name by viewing
# the servicemonitor of Prometheus itself: Without the correct name,
# Prometheus cannot identify the metrics of the Flask app as the target.)
spec
:
selector
:
...
...
@@ -119,11 +119,11 @@ spec:
app
:
l3-centralizedattackdetectorservice
# same as above
#release: prometheus # same as above
endpoints
:
-
port
:
metrics
# named port in target app
scheme
:
http
path
:
/metrics
# path to scrape
interval
:
5s
# scrape interval
-
port
:
metrics
# named port in target app
scheme
:
http
path
:
/metrics
# path to scrape
interval
:
5s
# scrape interval
namespaceSelector
:
any
:
false
matchNames
:
-
tfs
# namespace where the app is running
-
tfs
# namespace where the app is running
manifests/l3_distributedattackdetectorservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,27 +27,27 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/l3_distributedattackdetector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10000
env
:
-
name
:
LOG_LEVEL
value
:
"
DEBUG
"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10000"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10000"
]
resources
:
requests
:
cpu
:
250m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/l3_distributedattackdetector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10000
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO
"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10000"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10000"
]
resources
:
requests
:
cpu
:
250m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -58,6 +58,6 @@ spec:
selector
:
app
:
l3-distributedattackdetectorservice
ports
:
-
name
:
grpc
port
:
10000
targetPort
:
10000
-
name
:
grpc
port
:
10000
targetPort
:
10000
manifests/load_generatorservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -28,28 +28,28 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/load_generator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
50052
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50052"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50052"
]
resources
:
requests
:
cpu
:
256m
memory
:
64Mi
limits
:
cpu
:
512m
memory
:
128Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/load_generator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
50052
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50052"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50052"
]
resources
:
requests
:
cpu
:
256m
memory
:
64Mi
limits
:
cpu
:
512m
memory
:
128Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -62,11 +62,11 @@ spec:
selector
:
app
:
load-generatorservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
50052
targetPort
:
50052
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
protocol
:
TCP
port
:
50052
targetPort
:
50052
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
manifests/mock_blockchain.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,27 +27,27 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/mock_blockchain:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
50051
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50051"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50051"
]
resources
:
requests
:
cpu
:
100m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/mock_blockchain:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
50051
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50051"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:50051"
]
resources
:
requests
:
cpu
:
100m
memory
:
512Mi
limits
:
cpu
:
700m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -58,7 +58,7 @@ spec:
selector
:
app
:
mock-blockchain
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
50051
targetPort
:
50051
-
name
:
grpc
protocol
:
TCP
port
:
50051
targetPort
:
50051
manifests/monitoringservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -28,31 +28,31 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/monitoring:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
7070
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
envFrom
:
-
secretRef
:
name
:
qdb-data
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:7070"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:7070"
]
resources
:
requests
:
cpu
:
250m
memory
:
256Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/monitoring:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
7070
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
envFrom
:
-
secretRef
:
name
:
qdb-data
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:7070"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:7070"
]
resources
:
requests
:
cpu
:
250m
memory
:
256Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -65,11 +65,11 @@ spec:
selector
:
app
:
monitoringservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
7070
targetPort
:
7070
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
protocol
:
TCP
port
:
7070
targetPort
:
7070
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
manifests/nbiservice.yaml
0 → 100644
View file @
6c4ef63c
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
nbiservice
spec
:
selector
:
matchLabels
:
app
:
nbiservice
replicas
:
1
template
:
metadata
:
labels
:
app
:
nbiservice
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/nbi:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8080
-
containerPort
:
9090
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:9090"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:9090"
]
resources
:
requests
:
cpu
:
50m
memory
:
64Mi
limits
:
cpu
:
500m
memory
:
512Mi
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
nbiservice
labels
:
app
:
nbiservice
spec
:
type
:
ClusterIP
selector
:
app
:
nbiservice
ports
:
-
name
:
http
protocol
:
TCP
port
:
8080
targetPort
:
8080
-
name
:
grpc
protocol
:
TCP
port
:
9090
targetPort
:
9090
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
manifests/nginx_ingress_http.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -20,26 +20,40 @@ metadata:
nginx.ingress.kubernetes.io/rewrite-target
:
/$2
spec
:
rules
:
-
http
:
paths
:
-
path
:
/webui(/|$)(.*)
pathType
:
Prefix
backend
:
service
:
name
:
webuiservice
port
:
number
:
8004
-
path
:
/grafana(/|$)(.*)
pathType
:
Prefix
backend
:
service
:
name
:
webuiservice
port
:
number
:
3000
-
path
:
/()(restconf/.*)
pathType
:
Prefix
backend
:
service
:
name
:
computeservice
port
:
number
:
8080
-
http
:
paths
:
-
path
:
/webui(/|$)(.*)
pathType
:
Prefix
backend
:
service
:
name
:
webuiservice
port
:
number
:
8004
-
path
:
/grafana(/|$)(.*)
pathType
:
Prefix
backend
:
service
:
name
:
webuiservice
port
:
number
:
3000
-
path
:
/()(restconf/.*)
pathType
:
Prefix
backend
:
service
:
name
:
nbiservice
port
:
number
:
8080
-
path
:
/()(tfs-api/.*)
pathType
:
Prefix
backend
:
service
:
name
:
nbiservice
port
:
number
:
8080
-
path
:
/()(bmw/.*)
pathType
:
Prefix
backend
:
service
:
name
:
nbiservice
port
:
number
:
8080
manifests/opticalattackdetectorservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,33 +27,33 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/opticalattackdetector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10006
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
REDIS_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
redis-secrets
key
:
REDIS_PASSWORD
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10006"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10006"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/opticalattackdetector:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10006
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
REDIS_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
redis-secrets
key
:
REDIS_PASSWORD
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10006"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10006"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -66,12 +66,12 @@ spec:
selector
:
app
:
opticalattackdetectorservice
ports
:
-
name
:
grpc
port
:
10006
targetPort
:
10006
-
name
:
metrics
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10006
targetPort
:
10006
-
name
:
metrics
port
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
...
...
@@ -85,12 +85,12 @@ spec:
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
manifests/opticalattackmanagerservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -28,33 +28,33 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/opticalattackmanager:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10005
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
MONITORING_INTERVAL
value
:
"
30"
-
name
:
OPTICALATTACKMANAGERSERVICE_LOOP_MIN_WORKERS
value
:
"
2"
# remember to align this with the resource limits
-
name
:
OPTICALATTACKMANAGERSERVICE_LOOP_MAX_WORKERS
value
:
"
10"
# remember to align this with the resource limits
-
name
:
REDIS_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
redis-secrets
key
:
REDIS_PASSWORD
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
10000m
memory
:
10240Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/opticalattackmanager:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10005
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
MONITORING_INTERVAL
value
:
"
30"
-
name
:
OPTICALATTACKMANAGERSERVICE_LOOP_MIN_WORKERS
value
:
"
2"
# remember to align this with the resource limits
-
name
:
OPTICALATTACKMANAGERSERVICE_LOOP_MAX_WORKERS
value
:
"
10"
# remember to align this with the resource limits
-
name
:
REDIS_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
redis-secrets
key
:
REDIS_PASSWORD
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
10000m
memory
:
10240Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -67,9 +67,9 @@ spec:
selector
:
app
:
opticalattackmanagerservice
ports
:
-
name
:
grpc
port
:
10005
targetPort
:
10005
-
name
:
metrics
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10005
targetPort
:
10005
-
name
:
metrics
port
:
9192
targetPort
:
9192
manifests/opticalattackmitigatorservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -27,28 +27,28 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/opticalattackmitigator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10007
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10007"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10007"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
server
image
:
labs.etsi.org:5050/tfs/controller/opticalattackmitigator:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10007
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10007"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10007"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -61,12 +61,12 @@ spec:
selector
:
app
:
opticalattackmitigatorservice
ports
:
-
name
:
grpc
port
:
10007
targetPort
:
10007
-
name
:
metrics
port
:
9192
targetPort
:
9192
-
name
:
grpc
port
:
10007
targetPort
:
10007
-
name
:
metrics
port
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
...
...
@@ -80,12 +80,12 @@ spec:
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
manifests/opticalcontrollerservice.yaml
0 → 100644
View file @
6c4ef63c
# Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
opticalcontrollerservice
spec
:
selector
:
matchLabels
:
app
:
opticalcontrollerservice
replicas
:
1
template
:
metadata
:
labels
:
app
:
opticalcontrollerservice
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
server
image
:
localhost:32000/tfs/opticalcontroller:dev
imagePullPolicy
:
Never
ports
:
-
containerPort
:
10060
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
#readinessProbe:
# exec:
# command: ["/bin/grpc_health_probe", "-addr=:10060"]
#livenessProbe:
# exec:
# command: ["/bin/grpc_health_probe", "-addr=:10060"]
resources
:
requests
:
cpu
:
500m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
opticalcontrollerservice
labels
:
app
:
opticalcontrollerservice
spec
:
type
:
ClusterIP
selector
:
app
:
opticalcontrollerservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
10060
targetPort
:
10060
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
manifests/pathcompservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -28,52 +28,54 @@ spec:
spec
:
terminationGracePeriodSeconds
:
5
containers
:
-
name
:
frontend
image
:
labs.etsi.org:5050/tfs/controller/pathcomp-frontend:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10020
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10020"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10020"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
backend
image
:
labs.etsi.org:5050/tfs/controller/pathcomp-backend:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8081
#readinessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
#livenessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
resources
:
requests
:
cpu
:
250m
memory
:
256Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
frontend
image
:
labs.etsi.org:5050/tfs/controller/pathcomp-frontend:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
10020
-
containerPort
:
9192
env
:
-
name
:
LOG_LEVEL
value
:
"
INFO"
-
name
:
ENABLE_FORECASTER
value
:
"
NO"
readinessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10020"
]
livenessProbe
:
exec
:
command
:
[
"
/bin/grpc_health_probe"
,
"
-addr=:10020"
]
resources
:
requests
:
cpu
:
250m
memory
:
128Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
-
name
:
backend
image
:
labs.etsi.org:5050/tfs/controller/pathcomp-backend:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
8081
#readinessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
#livenessProbe:
# httpGet:
# path: /health
# port: 8081
# initialDelaySeconds: 5
# timeoutSeconds: 5
resources
:
requests
:
cpu
:
250m
memory
:
256Mi
limits
:
cpu
:
1000m
memory
:
1024Mi
---
apiVersion
:
v1
kind
:
Service
...
...
@@ -86,18 +88,18 @@ spec:
selector
:
app
:
pathcompservice
ports
:
-
name
:
grpc
protocol
:
TCP
port
:
10020
targetPort
:
10020
-
name
:
http
protocol
:
TCP
port
:
8081
targetPort
:
8081
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
-
name
:
grpc
protocol
:
TCP
port
:
10020
targetPort
:
10020
-
name
:
http
protocol
:
TCP
port
:
8081
targetPort
:
8081
-
name
:
metrics
protocol
:
TCP
port
:
9192
targetPort
:
9192
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
...
...
@@ -111,12 +113,12 @@ spec:
minReplicas
:
1
maxReplicas
:
20
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#behavior:
# scaleDown:
# stabilizationWindowSeconds: 30
manifests/policyservice.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -108,22 +108,22 @@ spec:
limits
:
cpu
:
2000m
memory
:
2048Mi
---
apiVersion
:
autoscaling/v2
kind
:
HorizontalPodAutoscaler
metadata
:
name
:
policyservice-hpa
spec
:
scaleTargetRef
:
apiVersion
:
apps/v1
kind
:
Deployment
name
:
policyservice
minReplicas
:
1
maxReplicas
:
10
metrics
:
-
type
:
Resource
resource
:
name
:
cpu
target
:
type
:
Utilization
averageUtilization
:
80
#
---
#
apiVersion: autoscaling/v2
#
kind: HorizontalPodAutoscaler
#
metadata:
#
name: policyservice-hpa
#
spec:
#
scaleTargetRef:
#
apiVersion: apps/v1
#
kind: Deployment
#
name: policyservice
#
minReplicas: 1
#
maxReplicas: 10
#
metrics:
#
- type: Resource
#
resource:
#
name: cpu
#
target:
#
type: Utilization
#
averageUtilization: 80
manifests/prometheus.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -60,18 +60,18 @@ spec:
spec
:
#serviceAccountName: prometheus
containers
:
-
name
:
prometheus
image
:
prom/prometheus:v2.28.1
ports
:
-
containerPort
:
9090
volumeMounts
:
-
name
:
prometheus-config-volume
mountPath
:
/etc/prometheus/prometheus.yml
subPath
:
prometheus.yml
-
name
:
prometheus
image
:
prom/prometheus:v2.28.1
ports
:
-
containerPort
:
9090
volumeMounts
:
-
name
:
prometheus-config-volume
mountPath
:
/etc/prometheus/prometheus.yml
subPath
:
prometheus.yml
volumes
:
-
name
:
prometheus-config-volume
configMap
:
name
:
prometheus-config
-
name
:
prometheus-config-volume
configMap
:
name
:
prometheus-config
restartPolicy
:
Always
---
apiVersion
:
v1
...
...
@@ -85,8 +85,9 @@ spec:
selector
:
app
:
prometheus
ports
:
-
name
:
http
protocol
:
TCP
port
:
9090
targetPort
:
9090
-
name
:
http
protocol
:
TCP
port
:
9090
targetPort
:
9090
---
manifests/questdb/manifest.yaml
View file @
6c4ef63c
# Copyright 2022-202
3
ETSI TeraFlowSDN
-
TFS
OSG
(https://tfs.etsi.org/)
# Copyright 2022-202
4
ETSI
OSG/SDG
TeraFlowSDN
(
TFS
)
(https://tfs.etsi.org/)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
Prev
1
2
3
4
5
6
7
8
9
10
…
21
Next