mirror of https://github.com/codevalet/codevalet
Update the deployment script for the webapp
Just kill the pod 👏
This commit is contained in:
parent
9de1b6d758
commit
d4eaa6cc99
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue