Custom Canary K8s Docker image for Codefresh pipeline usage
617
Performing a kubernetes deployment with canary
This is a shell script that can perform a gradual deployment in K8s using canaries.
It uses the kube-help image because it is using kubectl
It does the following
If something goes wrong (the pods have restarts) the scripts deletes all canaries and scales back the production version to the original number of replicas
The canary percentage is configurable. The script will automatically calculate the phase
Example
| Phase | Production | Canary |
|---|---|---|
| Original | 5 | 0 |
| A | 5 | 1 |
| B | 3 | 3 |
| C | 1 | 5 |
| Final | 0 | 5 |
Notes:
Content type
Image
Digest
Size
56.1 MB
Last updated
over 7 years ago
docker pull codefresh/k8s-canary:master