Add a couple scripts for rolling updates through the kubernetes cluster

This commit is contained in:
R. Tyler Croy 2017-08-20 15:46:12 -07:00
parent 831c9e9915
commit 1622dcf857
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 10 additions and 0 deletions

7
scripts/rolling-update-masters Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
REPO_DIR=$(realpath $(dirname $0)/../)
for monkey in $(cat $REPO_DIR/monkeys.txt); do
kubectl rolling-update jenkins-${monkey} --image=rtyler/codevalet-master:latest --image-pull-policy=Always --update-period=10s
done;

3
scripts/rolling-update-webapp Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec kubectl rolling-update webapp --image=rtyler/codevalet-webapp:latest --image-pull-policy=Always --update-period=10s