This repository has been archived on 2023-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-14 16:14:00 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
# Delete the gitea-config secrets
|
|
|
|
kubectl delete secret gitea-config
|
2019-02-05 19:29:08 +00:00
|
|
|
# Replace it from the local files in kubernetes/custom/config/* (acquired by running
|
2018-12-14 16:14:00 +00:00
|
|
|
# ./script/get_secrets)
|
2019-02-05 19:29:08 +00:00
|
|
|
kubectl create secret generic gitea-config --from-file=cert.pem=kubernetes/custom/config/cert.pem --from-file=key.pem=kubernetes/custom/config/key.pem --from-file=app.ini=kubernetes/custom/config/app.ini
|
2018-12-14 17:47:53 +00:00
|
|
|
# Force the pod to restart by patching the deployment resource
|
|
|
|
kubectl patch deployment gitea-server -p "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"date\":\"`date +'%s'`\"}}}}}"
|