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
9375c692
Commit
9375c692
authored
10 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Deployment scripts:
- Corrected name collision in CRDB databases
parent
92772d7b
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!207
Resolve "(CTTC) Separation of Monitoring"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy/tfs.sh
+4
-2
4 additions, 2 deletions
deploy/tfs.sh
with
4 additions
and
2 deletions
deploy/tfs.sh
+
4
−
2
View file @
9375c692
...
@@ -137,10 +137,11 @@ printf "\n"
...
@@ -137,10 +137,11 @@ printf "\n"
echo
"Create secret with CockroachDB data"
echo
"Create secret with CockroachDB data"
CRDB_SQL_PORT
=
$(
kubectl
--namespace
${
CRDB_NAMESPACE
}
get service cockroachdb-public
-o
'jsonpath={.spec.ports[?(@.name=="sql")].port}'
)
CRDB_SQL_PORT
=
$(
kubectl
--namespace
${
CRDB_NAMESPACE
}
get service cockroachdb-public
-o
'jsonpath={.spec.ports[?(@.name=="sql")].port}'
)
CRDB_DATABASE_CONTEXT
=
${
CRDB_DATABASE
}
# TODO: change by specific configurable environment variable
kubectl create secret generic crdb-data
--namespace
${
TFS_K8S_NAMESPACE
}
--type
=
'Opaque'
\
kubectl create secret generic crdb-data
--namespace
${
TFS_K8S_NAMESPACE
}
--type
=
'Opaque'
\
--from-literal
=
CRDB_NAMESPACE
=
${
CRDB_NAMESPACE
}
\
--from-literal
=
CRDB_NAMESPACE
=
${
CRDB_NAMESPACE
}
\
--from-literal
=
CRDB_SQL_PORT
=
${
CRDB_SQL_PORT
}
\
--from-literal
=
CRDB_SQL_PORT
=
${
CRDB_SQL_PORT
}
\
--from-literal
=
CRDB_DATABASE
=
${
CRDB_DATABASE
}
\
--from-literal
=
CRDB_DATABASE
=
${
CRDB_DATABASE
_CONTEXT
}
\
--from-literal
=
CRDB_USERNAME
=
${
CRDB_USERNAME
}
\
--from-literal
=
CRDB_USERNAME
=
${
CRDB_USERNAME
}
\
--from-literal
=
CRDB_PASSWORD
=
${
CRDB_PASSWORD
}
\
--from-literal
=
CRDB_PASSWORD
=
${
CRDB_PASSWORD
}
\
--from-literal
=
CRDB_SSLMODE
=
require
--from-literal
=
CRDB_SSLMODE
=
require
...
@@ -148,10 +149,11 @@ printf "\n"
...
@@ -148,10 +149,11 @@ printf "\n"
echo
"Create secret with CockroachDB data for KPI Management"
echo
"Create secret with CockroachDB data for KPI Management"
CRDB_SQL_PORT
=
$(
kubectl
--namespace
${
CRDB_NAMESPACE
}
get service cockroachdb-public
-o
'jsonpath={.spec.ports[?(@.name=="sql")].port}'
)
CRDB_SQL_PORT
=
$(
kubectl
--namespace
${
CRDB_NAMESPACE
}
get service cockroachdb-public
-o
'jsonpath={.spec.ports[?(@.name=="sql")].port}'
)
CRDB_DATABASE_KPI_MGMT
=
"tfs_kpi_mgmt"
# TODO: change by specific configurable environment variable
kubectl create secret generic crdb-kpi-data
--namespace
${
TFS_K8S_NAMESPACE
}
--type
=
'Opaque'
\
kubectl create secret generic crdb-kpi-data
--namespace
${
TFS_K8S_NAMESPACE
}
--type
=
'Opaque'
\
--from-literal
=
CRDB_NAMESPACE
=
${
CRDB_NAMESPACE
}
\
--from-literal
=
CRDB_NAMESPACE
=
${
CRDB_NAMESPACE
}
\
--from-literal
=
CRDB_SQL_PORT
=
${
CRDB_SQL_PORT
}
\
--from-literal
=
CRDB_SQL_PORT
=
${
CRDB_SQL_PORT
}
\
--from-literal
=
CRDB_DATABASE
=
${
CRDB_DATABASE
}
\
--from-literal
=
CRDB_DATABASE
=
${
CRDB_DATABASE
_KPI_MGMT
}
\
--from-literal
=
CRDB_USERNAME
=
${
CRDB_USERNAME
}
\
--from-literal
=
CRDB_USERNAME
=
${
CRDB_USERNAME
}
\
--from-literal
=
CRDB_PASSWORD
=
${
CRDB_PASSWORD
}
\
--from-literal
=
CRDB_PASSWORD
=
${
CRDB_PASSWORD
}
\
--from-literal
=
CRDB_SSLMODE
=
require
--from-literal
=
CRDB_SSLMODE
=
require
...
...
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