Comments (2)
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:
- The latest image should not be deprecated or obsolete.
- The next-latest X images (the 'newest of the old') should be marked deprecated, and point to the latest image.
- All other images should be obsolete, and point to the latest image.
- 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.
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)
- Implement Packer in Cloud Build HOT 1
- Implement Packer container for Cloud Build HOT 1
- Send Cloud Build notifications to Slack
- Terraform code for Core & Packer HOT 1
- Terraform code for GCS core HOT 1
- Terraform code for GCS management node HOT 1
- How to SSH from the management node to the DTN HOT 1
- Switch Packer to a NAT? HOT 1
- Manage the cloudbuild bucket
- Manage the Terraform state bucket
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcs_gcp.