Force a new deployment after replacing the secrets

This commit is contained in:
Greg 2018-12-14 18:47:53 +01:00
parent 4c463adcda
commit 9407a74119
1 changed files with 2 additions and 0 deletions

View File

@ -5,3 +5,5 @@ kubectl delete secret gitea-config
# Replace it from the local files in kubernetes/config/* (acquired by running
# ./script/get_secrets)
kubectl create secret generic gitea-config --from-file=cert.pem=kubernetes/config/cert.pem --from-file=key.pem=kubernetes/config/key.pem --from-file=app.ini=kubernetes/config/app.ini
# Force the pod to restart by patching the deployment resource
kubectl patch deployment gitea-server -p "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"date\":\"`date +'%s'`\"}}}}}"