Updating the Production Keeper Deployment on Kubernetes¶
Kubernetes makes it easy to update LTD Keeper in production with minimal downtime (or no downtime if several Keeper pods are being load balanced).
Note that this procedure could be considered immature. Ideally we would have a staging cluster to run end-to-end tests on upgrade candidate, and only then introduce the upgraded application into production with the canary pattern. The deployment procedure described here can still be rolled-back quickly if a fault is detected.
Keeper should be pushed to GitHub and pass all tests on Travis CI.
Formally make a Git release by tagging it:
git tag -s X.Y.Z -m "X.Y.Z" git push --tags
Travis CI pushes a new Docker image to Docker Hub. See Docker images.
keeper-deployment.yamland update the name of the
imageto the new Docker image:
Apply the new deployment configuration:
kubectl apply -f keeper-deployment.yaml
To follow the upgrade, use these commands:
kubectl describe deployment keeper-deployment kubectl get pods