Skip to content

Commit

Permalink
Add "preemptible" option for GCP compute (default: false)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 22, 2023
1 parent b000ffc commit b5d6a25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/cloud-resources/tasks/gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@
type: ONE_TO_ONE_NAT
metadata:
ssh-keys: "root:{{ ssh_key_content }}"
scheduling:
preemptible: "{{ gcp_compute_instance_preemptible | default(false) | bool }}"
tags:
items:
- "{{ patroni_cluster_name }}"
Expand Down

0 comments on commit b5d6a25

Please sign in to comment.