Skip to content

Instantly share code, notes, and snippets.

@nexus166
Created October 30, 2019 20:53
Show Gist options
  • Select an option

  • Save nexus166/c535c2365d56eb48551a071fe844a4dc to your computer and use it in GitHub Desktop.

Select an option

Save nexus166/c535c2365d56eb48551a071fe844a4dc to your computer and use it in GitHub Desktop.
kube-deployment-reload.sh
#!/usr/bin/env bash
kubectl patch deployment ${@} -p '
{
"spec": {
"template": {
"metadata": {
"annotations": {
"date": "'$(date +%s)'",
"user": "'$USER'"
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment