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
47ba7cb4
Commit
47ba7cb4
authored
1 year ago
by
David José Araújo Ferreira
Browse files
Options
Downloads
Patches
Plain Diff
CRDB and NATS c luters testing
parent
265a2f46
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
deploy/nats.sh
+3
-1
3 additions, 1 deletion
deploy/nats.sh
my_deploy.sh
+1
-1
1 addition, 1 deletion
my_deploy.sh
with
4 additions
and
2 deletions
deploy/nats.sh
+
3
−
1
View file @
47ba7cb4
...
@@ -56,8 +56,10 @@ function nats_deploy_single() {
...
@@ -56,8 +56,10 @@ function nats_deploy_single() {
if
kubectl get
--namespace
${
NATS_NAMESPACE
}
statefulset/
${
NATS_NAMESPACE
}
&> /dev/null
;
then
if
kubectl get
--namespace
${
NATS_NAMESPACE
}
statefulset/
${
NATS_NAMESPACE
}
&> /dev/null
;
then
echo
">>> NATS is present; skipping step."
echo
">>> NATS is present; skipping step."
else
else
# TESTING - Experimenting with cluster
echo
">>> Deploy NATS"
echo
">>> Deploy NATS"
helm3
install
${
NATS_NAMESPACE
}
nats/nats
--namespace
${
NATS_NAMESPACE
}
--set
nats.image
=
nats:2.9-alpine
helm3
install
${
NATS_NAMESPACE
}
nats/nats
--namespace
${
NATS_NAMESPACE
}
--set
nats.image
=
nats:2.9-alpine
--set
config.cluster.enabled
=
true
--set
config.cluster.tls.enabled
=
true
echo
">>> Waiting NATS statefulset to be created..."
echo
">>> Waiting NATS statefulset to be created..."
while
!
kubectl get
--namespace
${
NATS_NAMESPACE
}
statefulset/
${
NATS_NAMESPACE
}
&> /dev/null
;
do
while
!
kubectl get
--namespace
${
NATS_NAMESPACE
}
statefulset/
${
NATS_NAMESPACE
}
&> /dev/null
;
do
...
...
This diff is collapsed.
Click to expand it.
my_deploy.sh
+
1
−
1
View file @
47ba7cb4
...
@@ -96,7 +96,7 @@ export CRDB_DATABASE="tfs"
...
@@ -96,7 +96,7 @@ export CRDB_DATABASE="tfs"
# Set CockroachDB installation mode to 'single'. This option is convenient for development and testing.
# 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
# See ./deploy/all.sh or ./deploy/crdb.sh for additional details
export
CRDB_DEPLOY_MODE
=
"
single
"
export
CRDB_DEPLOY_MODE
=
"
cluster
"
# Disable flag for dropping database, if it exists.
# Disable flag for dropping database, if it exists.
export
CRDB_DROP_DATABASE_IF_EXISTS
=
""
export
CRDB_DROP_DATABASE_IF_EXISTS
=
""
...
...
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