Commit c679841a authored by Koehorst, Jasper's avatar Koehorst, Jasper
Browse files

skip non scheduled nodes

parent 12c9c565
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment