Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNLOCK
sync
Commits
c679841a
Commit
c679841a
authored
Mar 18, 2021
by
Koehorst, Jasper
Browse files
skip non scheduled nodes
parent
12c9c565
Changes
1
Hide whitespace changes
Inline
Side-by-side
sync.sh
View file @
c679841a
...
...
@@ -19,7 +19,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
kubectl get pods
--namespace
=
'unlock'
|
grep
munlock-sync |
grep
Completed |
awk
'{print "kubectl -n unlock delete pod "$1}'
| sh
# Get all possible nodes
kubectl get nodes
-l
node-role.kubernetes.io/worker
=
true
|
awk
'{print $1}'
|
grep
-v
NAME
>
$DIR
/nodes.txt
kubectl get nodes
-l
node-role.kubernetes.io/worker
=
true
|
grep
-v
"SchedulingDisabled"
|
awk
'{print $1}'
|
grep
-v
NAME
>
$DIR
/nodes.txt
# For each node perform the sync
while
read
node
;
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment