10 lines
408 B
Bash
10 lines
408 B
Bash
|
#! /bin/sh
|
||
|
# You can use this script to force kubernetes to update to the latest image
|
||
|
# Looking for a better way to do this...
|
||
|
DEPLOYMENT_NAME=blog-dep
|
||
|
|
||
|
kubectl patch deployment $DEPLOYMENT_NAME -p \
|
||
|
'{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":30}}}}' -n blog
|
||
|
kubectl patch deployment $DEPLOYMENT_NAME -p \
|
||
|
'{"spec":{"template":{"spec":{"terminationGracePeriodSeconds":60}}}}' -n blog
|