Skip to content

Commit

Permalink
Set instance_termination_action
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed Jun 19, 2024
1 parent 0c81b1d commit 16111cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inspector/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,11 @@ def start(ctx, exclude, start_only):
bootdisk_init_opts |= dict(image="ubuntu-2404-lts-arm64", size=16)
else:
bootdisk_init_opts |= dict(image="ubuntu-2404-lts-amd64", size=16)
resource_opts |= dict(bootdisk_init_opts=bootdisk_init_opts, scheduling_opts=dict(on_host_maintenance="TERMINATE"))
resource_opts |= dict(bootdisk_init_opts=bootdisk_init_opts,
scheduling_opts=dict(
on_host_maintenance="TERMINATE",
instance_termination_action="TERMINATE",
))
instance_opts |= dict(metadata_startup_script=user_data)

for zone in zones:
Expand Down

0 comments on commit 16111cf

Please sign in to comment.