Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
notebooks-operations
Commits
fe332575
Commit
fe332575
authored
7 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Sync deploy.sh script
parent
d8e3a470
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
cesnet-central/deploy.sh
+3
-6
3 additions, 6 deletions
cesnet-central/deploy.sh
staging1/deploy.sh
+1
-1
1 addition, 1 deletion
staging1/deploy.sh
staging2/deploy.sh
+7
-4
7 additions, 4 deletions
staging2/deploy.sh
testing/deploy.sh
+3
-1
3 additions, 1 deletion
testing/deploy.sh
with
14 additions
and
12 deletions
cesnet-central/deploy.sh
+
3
−
6
View file @
fe332575
...
@@ -5,10 +5,8 @@
...
@@ -5,10 +5,8 @@
# (without terraform and ansible-inventory tools)
# (without terraform and ansible-inventory tools)
#
#
INGRESS_HOSTNAME
=
'eosc.zcu.cz'
ip4
=
78.128.247.56
ip4
=
78.128.247.56
ip6
=
2001:718:ff05:205::56
#
ip6=2001:718:ff05:205::56
# wait ping
# wait ping
while
!
ping
-c
1
"
$ip4
"
;
do
sleep
5
;
done
while
!
ping
-c
1
"
$ip4
"
;
do
sleep
5
;
done
...
@@ -24,9 +22,8 @@ ansible -m shell -a 'while ! test -f /var/lib/cloud/instance/boot-finished; do s
...
@@ -24,9 +22,8 @@ ansible -m shell -a 'while ! test -f /var/lib/cloud/instance/boot-finished; do s
# kubernetes
# kubernetes
ansible-playbook playbooks/k8s.yaml
ansible-playbook playbooks/k8s.yaml
ansible-playbook playbooks/squid.yaml
# image repository
ansible-playbook playbooks/cvmfs.yaml
ansible-playbook playbooks/repository-nexus.yaml
# wait for finish
# wait for finish
while
ansible
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
while
ansible
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
This diff is collapsed.
Click to expand it.
staging1/deploy.sh
+
1
−
1
View file @
fe332575
...
@@ -42,7 +42,7 @@ ansible -m command -a '/root/nfs-volume.sh' nfs
...
@@ -42,7 +42,7 @@ ansible -m command -a '/root/nfs-volume.sh' nfs
ansible
-m
copy
-a
'src=terraform/squid-volume.sh dest=/root/ mode=preserve'
'ingress[0]'
ansible
-m
copy
-a
'src=terraform/squid-volume.sh dest=/root/ mode=preserve'
'ingress[0]'
ansible
-m
command
-a
'/root/squid-volume.sh'
'ingress[0]'
ansible
-m
command
-a
'/root/squid-volume.sh'
'ingress[0]'
# k
8s + notebook
s
# k
ubernete
s
ansible-playbook playbooks/k8s.yaml
ansible-playbook playbooks/k8s.yaml
while
ansible
-i
./inventory
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
while
ansible
-i
./inventory
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
# docker runtime directory after Kubernetes deployment (problem with unmounts)
# docker runtime directory after Kubernetes deployment (problem with unmounts)
...
...
This diff is collapsed.
Click to expand it.
staging2/deploy.sh
+
7
−
4
View file @
fe332575
...
@@ -20,7 +20,7 @@ ip="$(head -n 1 < terraform/fip.txt)"
...
@@ -20,7 +20,7 @@ ip="$(head -n 1 < terraform/fip.txt)"
# curl -i -X GET -u "$auth" https://nsupdate.fedcloud.eu/nic/update?myip="$ip"
# curl -i -X GET -u "$auth" https://nsupdate.fedcloud.eu/nic/update?myip="$ip"
# done
# done
# eval "$shellstate"
# eval "$shellstate"
echo
"Terraform finished. Continue? (CTRL-C to quit)"
echo
"Terraform finished.
Check terraform/docker-volume.sh.
Continue? (CTRL-C to quit)"
read
-r
_
read
-r
_
# wait for ping and ssh
# wait for ping and ssh
...
@@ -42,11 +42,14 @@ ansible -m command -a '/root/nfs-volume.sh' nfs
...
@@ -42,11 +42,14 @@ ansible -m command -a '/root/nfs-volume.sh' nfs
ansible
-m
copy
-a
'src=terraform/squid-volume.sh dest=/root/ mode=preserve'
'ingress[0]'
ansible
-m
copy
-a
'src=terraform/squid-volume.sh dest=/root/ mode=preserve'
'ingress[0]'
ansible
-m
command
-a
'/root/squid-volume.sh'
'ingress[0]'
ansible
-m
command
-a
'/root/squid-volume.sh'
'ingress[0]'
# k
8s + notebook
s
# k
ubernete
s
ansible-playbook playbooks/k8s.yaml
ansible-playbook playbooks/k8s.yaml
# ansible-playbook playbooks/squid.yaml
# ansible-playbook playbooks/cvmfs.yaml
while
ansible
-i
./inventory
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
while
ansible
-i
./inventory
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
# docker runtime directory after Kubernetes deployment (problem with unmounts)
# docker runtime directory after Kubernetes deployment (problem with unmounts)
ansible
-m
copy
-a
'src=terraform/docker-volume.sh dest=/root/ mode=preserve'
'ingress nfs worker gpu'
ansible
-m
copy
-a
'src=terraform/docker-volume.sh dest=/root/ mode=preserve'
'ingress nfs worker gpu'
ansible
-m
command
-a
'/root/docker-volume.sh'
'ingress nfs worker gpu'
ansible
-m
command
-a
'/root/docker-volume.sh'
'ingress nfs worker gpu'
ansible-playbook playbooks/squid.yaml
ansible-playbook playbooks/cvmfs.yaml
# wait for finish
while
ansible
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
This diff is collapsed.
Click to expand it.
testing/deploy.sh
+
3
−
1
View file @
fe332575
...
@@ -20,6 +20,8 @@ for auth in $FEDCLOUD_DYNAMIC_DNS; do
...
@@ -20,6 +20,8 @@ for auth in $FEDCLOUD_DYNAMIC_DNS; do
curl
-i
-X
GET
-u
"
$auth
"
https://nsupdate.fedcloud.eu/nic/update?myip
=
"
$ip
"
curl
-i
-X
GET
-u
"
$auth
"
https://nsupdate.fedcloud.eu/nic/update?myip
=
"
$ip
"
done
done
eval
"
$shellstate
"
eval
"
$shellstate
"
echo
"Terraform finished. Check terraform/docker-volume.sh. Continue? (CTRL-C to quit)"
read
-r
_
# wait for ping and ssh
# wait for ping and ssh
for
ip
in
$(
cat
terraform/hosts.txt
)
$(
cat
terraform/fip.txt
)
;
do
for
ip
in
$(
cat
terraform/hosts.txt
)
$(
cat
terraform/fip.txt
)
;
do
...
@@ -42,7 +44,7 @@ ansible -m command -a '/root/squid-volume.sh' 'ingress[0]'
...
@@ -42,7 +44,7 @@ ansible -m command -a '/root/squid-volume.sh' 'ingress[0]'
ansible
-m
copy
-a
'src=terraform/scratch-volume.sh dest=/root/ mode=preserve'
'ingress nfs worker gpu'
ansible
-m
copy
-a
'src=terraform/scratch-volume.sh dest=/root/ mode=preserve'
'ingress nfs worker gpu'
ansible
-m
command
-a
'/root/scratch-volume.sh'
'ingress nfs worker gpu'
ansible
-m
command
-a
'/root/scratch-volume.sh'
'ingress nfs worker gpu'
# k
8s + notebook
s
# k
ubernete
s
ansible-playbook playbooks/k8s.yaml
ansible-playbook playbooks/k8s.yaml
while
ansible
-i
./inventory
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
while
ansible
-i
./inventory
-m
command
-a
'kubectl get pods --all-namespaces'
master |
tail
-n
+3 |
grep
-v
' Running '
;
do
sleep
5
;
done
# docker runtime directory after Kubernetes deployment (problem with unmounts)
# docker runtime directory after Kubernetes deployment (problem with unmounts)
...
...
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