Is it possible in Google cloud engine to clone an existing instance template AND override the container image in the clone ?
the concrete situation is as follows:
We have a GCP project that consists of several gcp components including a managed instances group (MIG) which references an intance template.
In order to deploy (by a separeted CI/CD pipeline) new container image versions in the MIG we woud like (if possible) to clone the existing instance template, just overwrite the container-image in the clone and update the MIG with the clone.
Hence the questions:
is it possible to create an instance template by cloning an existing one and just overriding the container-image in the clone (without specifying all the other template settings)?
What is the best way to deploy a new container-image version in an existing MIG without creating a new instance template from scratch?
Thanks in advance for any answer!
As per GAllan, they use an equivalent version of the cli:
Removing the --create-disk option and replacing that with some boot disk options.
The cmd also needed the addition of ',address=""' to the network interface option to get an external ip address.
-tags may differ based on your firewall tags. The --boot-disk-device-name can be any name.