Giter Site home page Giter Site logo

Lifecycle compute images about gcs_gcp HOT 2 OPEN

akkornel avatar akkornel commented on July 20, 2024
Lifecycle compute images

from gcs_gcp.

Comments (2)

akkornel avatar akkornel commented on July 20, 2024

I'm moving this from the January 2022 milestone to the Ready for Public milestone. The reason is because of how instance templates work.

Instance templates need to reference an image for their boot disk configuration. But they don't reference image families, they reference specific images. That's a problem, because while Packer is making new, up-to-date images, the instance template is still pointing to the old images.

So, we need to set up an image lifecycle before this goes public, to ensure that old images are not able to be used by production traffic.

I'm thinking something like this:

  1. The latest image should not be deprecated or obsolete.
  2. The next-latest X images (the 'newest of the old') should be marked deprecated, and point to the latest image.
  3. All other images should be obsolete, and point to the latest image.
  4. Images older than Y days are deleted.

That sounds good to me overall, but there are two open questions:

• What values to use for X and Y?
• How to update the instance templates?

The last question is difficult, because I'm working on using Terraform to manage everything. So whatever handles image deprecation would also need to handle running Terraform to update the instance templates.

from gcs_gcp.

akkornel avatar akkornel commented on July 20, 2024

BTW I did have a look at https://blog.teemo.co/our-journey-to-immutable-infrastructure-7bd1e2ccb7de, which I think lines up with my thinking, but didn't talk about how to safely run Terraform from as part of CD.

from gcs_gcp.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.