Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rothgar
Created December 5, 2019 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rothgar/69eb8ef318e43d9ffa9a7e6e82f226fa to your computer and use it in GitHub Desktop.
Save rothgar/69eb8ef318e43d9ffa9a7e6e82f226fa to your computer and use it in GitHub Desktop.
pod timer
#!/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