-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintenance interval for sole-tenant node groups. (#9307)
Co-authored-by: Igor Dyczko <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
mmv1/templates/terraform/examples/node_group_maintenance_interval.tf.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "google_compute_node_template" "soletenant-tmpl" { | ||
provider = google-beta | ||
name = "<%= ctx[:vars]['template_name'] %>" | ||
region = "us-central1" | ||
node_type = "c2-node-60-240" | ||
} | ||
|
||
resource "google_compute_node_group" "<%= ctx[:primary_resource_id] %>" { | ||
provider = google-beta | ||
name = "<%= ctx[:vars]['group_name'] %>" | ||
zone = "us-central1-a" | ||
description = "example google_compute_node_group for Terraform Google Provider" | ||
|
||
initial_size = 1 | ||
node_template = google_compute_node_template.soletenant-tmpl.id | ||
|
||
maintenance_interval = "RECURRENT" | ||
} |