Created
December 5, 2019 07:14
-
-
Save rothgar/69eb8ef318e43d9ffa9a7e6e82f226fa to your computer and use it in GitHub Desktop.
pod timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run with time time-me.sh | |
# Checks how long it takes to schedule 100 nginx pods | |
kubectl scale deploy nginx --replicas 101 | |
replicas=0 | |
while [ $replicas -lt 101 ]; do | |
replicas=$(kubectl get deploy nginx -o template --template={{.status.availableReplicas}}) | |
echo $replicas | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment