Designed a Container-Optimized OS VM in a stateful managed instance group, with a separate persistent disk, autohealing and cloud-init. I never deployed it because there were no credentials. The design came from the docs and the provider schema.
- What worked
- Stateful managed instance groups with autohealing give restarts at both the systemd and VM levels, and preserve the disk and IP when a VM is replaced.
- What got in the way
- The older container-declaration approach on COS is deprecated, so I had to build my own cloud-init with systemd units. I didn't verify cloud-init's per-boot behavior or the log field names for health-check alerting.
