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
7fae0639
Commit
7fae0639
authored
5 months ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Updated Hackfest 5 scripts
parent
dd1164aa
No related branches found
Branches containing commit
No related tags found
1 merge request
!298
Resolve "Merge Hackfest 5 in `develop` and related code fixes"
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
deploy/all.sh
+2
-2
2 additions, 2 deletions
deploy/all.sh
deploy/nats.sh
+1
-2
1 addition, 2 deletions
deploy/nats.sh
deploy/tfs.sh
+16
-16
16 additions, 16 deletions
deploy/tfs.sh
hackfest5/redeploy-tfs.sh
+5
-0
5 additions, 0 deletions
hackfest5/redeploy-tfs.sh
with
24 additions
and
20 deletions
deploy/all.sh
+
2
−
2
View file @
7fae0639
...
...
@@ -212,8 +212,8 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"}
# Deploy QuestDB
./deploy/qdb.sh
# Deploy Apache Kafka
./deploy/kafka.sh
#
# Deploy Apache Kafka
#
./deploy/kafka.sh
# Expose Dashboard
./deploy/expose_dashboard.sh
...
...
This diff is collapsed.
Click to expand it.
deploy/nats.sh
+
1
−
2
View file @
7fae0639
...
...
@@ -69,8 +69,7 @@ function nats_deploy_single() {
echo
">>> NATS is present; skipping step."
else
echo
">>> Deploy NATS"
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
helm3
install
${
NATS_NAMESPACE
}
nats/nats
--namespace
${
NATS_NAMESPACE
}
--set
nats.image
=
nats:2.9-alpine
echo
">>> Waiting NATS statefulset to be created..."
while
!
kubectl get
--namespace
${
NATS_NAMESPACE
}
statefulset/
${
NATS_NAMESPACE
}
&> /dev/null
;
do
...
...
This diff is collapsed.
Click to expand it.
deploy/tfs.sh
+
16
−
16
View file @
7fae0639
...
...
@@ -112,16 +112,16 @@ export PROM_EXT_PORT_HTTP=${PROM_EXT_PORT_HTTP:-"9090"}
export
GRAF_EXT_PORT_HTTP
=
${
GRAF_EXT_PORT_HTTP
:-
"3000"
}
# ----- Apache Kafka ------------------------------------------------------
# If not already set, set the namespace where Apache Kafka will be deployed.
export
KFK_NAMESPACE
=
${
KFK_NAMESPACE
:-
"kafka"
}
# If not already set, set the port Apache Kafka server will be exposed to.
export
KFK_SERVER_PORT
=
${
KFK_SERVER_PORT
:-
"9092"
}
# If not already set, if flag is YES, Apache Kafka will be redeployed and topic will be lost.
export
KFK_REDEPLOY
=
${
KFK_REDEPLOY
:-
""
}
#
# ----- Apache Kafka ------------------------------------------------------
#
#
# If not already set, set the namespace where Apache Kafka will be deployed.
#
export KFK_NAMESPACE=${KFK_NAMESPACE:-"kafka"}
#
#
# If not already set, set the port Apache Kafka server will be exposed to.
#
export KFK_SERVER_PORT=${KFK_SERVER_PORT:-"9092"}
#
#
# If not already set, if flag is YES, Apache Kafka will be redeployed and topic will be lost.
#
export KFK_REDEPLOY=${KFK_REDEPLOY:-""}
########################################################################################################################
# Automated steps start here
...
...
@@ -153,12 +153,12 @@ kubectl create secret generic crdb-data --namespace ${TFS_K8S_NAMESPACE} --type=
--from-literal
=
CRDB_SSLMODE
=
require
printf
"
\n
"
echo
">>> Create Secret with Apache Ka
k
fa..."
KFK_SERVER_PORT
=
$(
kubectl
--namespace
${
KFK_NAMESPACE
}
get service kafka-service
-o
'jsonpath={.spec.ports[0].port}'
)
kubectl create secret generic kfk-kpi-data
--namespace
${
TFS_K8S_NAMESPACE
}
--type
=
'Opaque'
\
--from-literal
=
KFK_NAMESPACE
=
${
KFK_NAMESPACE
}
\
--from-literal
=
KFK_SERVER_PORT
=
${
KFK_SERVER_PORT
}
printf
"
\n
"
#
echo ">>> Create Secret with Apache Kaf
k
a..."
#
KFK_SERVER_PORT=$(kubectl --namespace ${KFK_NAMESPACE} get service kafka-service -o 'jsonpath={.spec.ports[0].port}')
#
kubectl create secret generic kfk-kpi-data --namespace ${TFS_K8S_NAMESPACE} --type='Opaque' \
#
--from-literal=KFK_NAMESPACE=${KFK_NAMESPACE} \
#
--from-literal=KFK_SERVER_PORT=${KFK_SERVER_PORT}
#
printf "\n"
echo
"Create secret with NATS data"
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.
hackfest5/redeploy-tfs.sh
+
5
−
0
View file @
7fae0639
...
...
@@ -14,4 +14,9 @@
# limitations under the License.
source
~/tfs-ctrl/hackfest5/deploy_specs.sh
helm3 uninstall
--namespace
${
NATS_NAMESPACE
}
${
NATS_NAMESPACE
}
kubectl delete namespace
${
NATS_NAMESPACE
}
--ignore-not-found
kubectl delete namespace
${
KFK_NAMESPACE
}
--ignore-not-found
./deploy/all.sh
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