blog/force_update.sh
2023-02-13 18:13:10 -05:00

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