QuestionQ30

VerifiedBuilding and implementing CI/CD pipelines, including continuous testing, for application, infrastructure, and machine learning workloads

Your company uses a CI/CD pipeline that uses Cloud Build and Artifact Registry to deploy container images to Google Kubernetes Engine (GKE). Images are tagged with the most recent commit hash and promoted to production after successful tests in the development and pre-production environments. A recent production deployment caused the application to fail because of untested integration functionality, requiring a disruptive manual rollback. During that rollback, you observed many old, unused container images accumulating in Artifact Registry. You need to improve rollout and rollback management and remove the old container images. What should you do?

Explanation

Cloud Deploy provides managed deployment pipelines for GKE and can roll a target back by creating a rollout from a previously successful release. Artifact Registry cleanup policies automatically delete artifact versions that meet defined criteria while preserving versions covered by keep policies, making them the appropriate native mechanism for removing unused container images.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!