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
1fbd9ab4
Commit
1fbd9ab4
authored
1 year ago
by
karamchandan
Browse files
Options
Downloads
Patches
Plain Diff
Created deploy_specs.sh for scenario_3/l3
parent
bce4a2e7
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!128
Fixes on L3 Cybersecurity components
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tests/scenario3/l3/deploy_specs.sh
+126
-0
126 additions, 0 deletions
src/tests/scenario3/l3/deploy_specs.sh
with
126 additions
and
0 deletions
src/tests/scenario3/l3/deploy_specs.sh
0 → 100644
+
126
−
0
View file @
1fbd9ab4
#!/bin/bash
# Copyright 2022-2023 ETSI TeraFlowSDN - TFS OSG (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.
# ----- TeraFlowSDN ------------------------------------------------------------
# Set the URL of the internal MicroK8s Docker registry where the images will be uploaded to.
export
TFS_REGISTRY_IMAGES
=
"http://localhost:32000/tfs/"
# Set the list of components, separated by spaces, you want to build images for, and deploy.
export
TFS_COMPONENTS
=
"context device pathcomp service slice compute webui load_generator monitoring automation l3_attackmitigator l3_centralizedattackdetector"
# Set the tag you want to use for your images.
export
TFS_IMAGE_TAG
=
"dev"
# Set the name of the Kubernetes namespace to deploy TFS to.
export
TFS_K8S_NAMESPACE
=
"tfs"
# Set additional manifest files to be applied after the deployment
export
TFS_EXTRA_MANIFESTS
=
"manifests/nginx_ingress_http.yaml manifests/servicemonitors.yaml"
# Set the new Grafana admin password
export
TFS_GRAFANA_PASSWORD
=
"admin123+"
# Disable skip-build flag to rebuild the Docker images.
export
TFS_SKIP_BUILD
=
""
# ----- CockroachDB ------------------------------------------------------------
# Set the namespace where CockroackDB will be deployed.
export
CRDB_NAMESPACE
=
"crdb"
# Set the external port CockroackDB Postgre SQL interface will be exposed to.
export
CRDB_EXT_PORT_SQL
=
"26257"
# Set the external port CockroackDB HTTP Mgmt GUI interface will be exposed to.
export
CRDB_EXT_PORT_HTTP
=
"8081"
# Set the database username to be used by Context.
export
CRDB_USERNAME
=
"tfs"
# Set the database user's password to be used by Context.
export
CRDB_PASSWORD
=
"tfs123"
# Set the database name to be used by Context.
export
CRDB_DATABASE
=
"tfs"
# Set CockroachDB installation mode to 'single'. This option is convenient for development and testing.
# See ./deploy/all.sh or ./deploy/crdb.sh for additional details
export
CRDB_DEPLOY_MODE
=
"single"
# Disable flag for dropping database, if it exists.
export
CRDB_DROP_DATABASE_IF_EXISTS
=
"YES"
# Disable flag for re-deploying CockroachDB from scratch.
export
CRDB_REDEPLOY
=
"YES"
# ----- NATS -------------------------------------------------------------------
# Set the namespace where NATS will be deployed.
export
NATS_NAMESPACE
=
"nats"
# Set the external port NATS Client interface will be exposed to.
export
NATS_EXT_PORT_CLIENT
=
"4222"
# Set the external port NATS HTTP Mgmt GUI interface will be exposed to.
export
NATS_EXT_PORT_HTTP
=
"8222"
# Disable flag for re-deploying NATS from scratch.
export
NATS_REDEPLOY
=
"YES"
# ----- QuestDB ----------------------------------------------------------------
# Set the namespace where QuestDB will be deployed.
export
QDB_NAMESPACE
=
"qdb"
# Set the external port QuestDB Postgre SQL interface will be exposed to.
export
QDB_EXT_PORT_SQL
=
"8812"
# Set the external port QuestDB Influx Line Protocol interface will be exposed to.
export
QDB_EXT_PORT_ILP
=
"9009"
# Set the external port QuestDB HTTP Mgmt GUI interface will be exposed to.
export
QDB_EXT_PORT_HTTP
=
"9000"
# Set the database username to be used for QuestDB.
export
QDB_USERNAME
=
"admin"
# Set the database user's password to be used for QuestDB.
export
QDB_PASSWORD
=
"quest"
# Set the table name to be used by Monitoring for KPIs.
export
QDB_TABLE_MONITORING_KPIS
=
"tfs_monitoring_kpis"
# Set the table name to be used by Slice for plotting groups.
export
QDB_TABLE_SLICE_GROUPS
=
"tfs_slice_groups"
# Disable flag for dropping tables if they exist.
export
QDB_DROP_TABLES_IF_EXIST
=
"YES"
# Disable flag for re-deploying QuestDB from scratch.
export
QDB_REDEPLOY
=
"YES"
# ----- K8s Observability ------------------------------------------------------
# Set the external port Prometheus Mgmt HTTP GUI interface will be exposed to.
export
PROM_EXT_PORT_HTTP
=
"9090"
# Set the external port Grafana HTTP Dashboards will be exposed to.
export
GRAF_EXT_PORT_HTTP
=
"3000"
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