snowjs / cli

CLI tool for dead-simple serverless Docker deployments on managed Kubernetes services. A self-hosted PaaS. ⚡️
https://github.com/snowjs/cli/tree/secrets
MIT License
409 stars 10 forks source link

[Deploy] image lifecycle management #18

Open petermikitsh opened 5 years ago

petermikitsh commented 5 years ago

When we provision a cluster during snow create, we create an 8gb persistent volume claim. Currently, each deployment grows the space used on the volume.

We need to manage the lifecycle. If a deployment named foo is deployed twice, then the first image should be deleted from the registry.

This would prevent rollbacks but 🤷‍♂️