Update the deployment script for the webapp

Just kill the pod 👏
This commit is contained in:
R. Tyler Croy 2017-12-13 14:50:20 -08:00
parent 9de1b6d758
commit d4eaa6cc99
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
1 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
#!/bin/sh
exec kubectl rolling-update webapp --image=rtyler/codevalet-webapp:latest --image-pull-policy=Always --update-period=10s
POD=$(kubectl get pods --namespace=webapp -l app=webapp | tail -n 1 | awk '{ print $1 }')
echo ">> Killing ${POD}"
exec kubectl delete pod --namespace=webapp ${POD}