Skip to content

Commit cb3a20c

Browse files
committed
Moving to separate folder and adding test skip file
1 parent abd112a commit cb3a20c

File tree

3 files changed

+77
-24
lines changed

3 files changed

+77
-24
lines changed

gke/standard/zonal/dws/main.tf

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/**
2+
* Copyright 2024 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
# [START gke_standard_zonal_dws_flex_cluster]
18+
19+
# DWS Flex currently require project allowlisting, please follow steps from here
20+
# https://cloud.google.com/kubernetes-engine/docs/concepts/dws
21+
resource "google_container_cluster" "default" {
22+
name = "gke-standard-zonal-flex-cluster"
23+
location = "us-central1-a"
24+
initial_node_count = 1
25+
26+
node_config {
27+
machine_type = "e2-medium"
28+
}
29+
}
30+
# [END gke_standard_zonal_dws_flex_cluster]
31+
32+
33+
# [START gke_standard_zonal_dws_non_q_flex]
34+
resource "google_container_node_pool" "dws_non_q_flex" {
35+
provider = google-beta
36+
name = "gke-standard-zonal-dws-non-q-flex"
37+
cluster = google_container_cluster.default.name
38+
location = google_container_cluster.default.location
39+
40+
initial_node_count = 0
41+
autoscaling {
42+
total_min_node_count = 0
43+
total_max_node_count = 1
44+
}
45+
46+
# More details on usage https://cloud.google.com/kubernetes-engine/docs/how-to/dws-flex-start-training
47+
node_config {
48+
machine_type = "e2-medium"
49+
flex_start = true
50+
51+
reservation_affinity {
52+
consume_reservation_type = "NO_RESERVATION"
53+
}
54+
}
55+
}
56+
# [END gke_standard_zonal_dws_non_q_flex]

gke/standard/zonal/dws/test.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# DWS Flex is currently behind project allowlist. https://cloud.google.com/kubernetes-engine/docs/concepts/dws#methods
16+
apiVersion: blueprints.cloud.google.com/v1alpha1
17+
kind: BlueprintTest
18+
metadata:
19+
name: gke_standard_zonal_dws
20+
spec:
21+
skip: true

gke/standard/zonal/reservation/main.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -106,27 +106,3 @@ resource "google_container_node_pool" "specific_node_pool" {
106106
]
107107
}
108108
# [END gke_standard_zonal_reservation_specific_node_pool]
109-
110-
# [START gke_standard_zonal_reservation_flex]
111-
resource "google_container_node_pool" "reservation_flex" {
112-
provider = google-beta
113-
name = "gke_standard_zonal_reservation_flex"
114-
cluster = google_container_cluster.default.name
115-
location = google_container_cluster.default.location
116-
117-
initial_node_count = 0
118-
autoscaling {
119-
total_min_node_count = 0
120-
total_max_node_count = 1
121-
}
122-
node_config {
123-
machine_type = "e2-medium"
124-
flex_start = true
125-
max_run_duration = "604800s"
126-
127-
reservation_affinity {
128-
consume_reservation_type = "NO_RESERVATION"
129-
}
130-
}
131-
}
132-
# [END gke_standard_zonal_reservation_flex]

0 commit comments

Comments
 (0)