Commands
Pre deploy and post deploy commands allow you to run commands with your container image.
Deployment Workflow
The deployment of a Canine project is:
- Upload container registry secrets so that the cluster can download images from the container registry
- Create project namespace (if it doesn't exist)
- Set environment variables by creating a ConfigMap
- Create volumes (if necessary)
- Run pre deploy command
- Deploy / update each service (web, background workers, ingress, and cron jobs)
- Kill one of containers (since they are now using old code)
- Run post deploy command