10 lines
408 B
Bash
Executable File
10 lines
408 B
Bash
Executable File
#! /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
|