-
Notifications
You must be signed in to change notification settings - Fork 0
/
gke.tf
41 lines (34 loc) · 1 KB
/
gke.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
resource "google_container_cluster" "this" {
name = var.cluster_name
location = var.region
network = var.network_name
subnetwork = var.subnet_name
min_master_version = data.google_container_engine_versions.gke_version.latest_master_version
initial_node_count = 1
remove_default_node_pool = true
master_auth {
client_certificate_config {
issue_client_certificate = false
}
}
addons_config {
gce_persistent_disk_csi_driver_config {
enabled = true
}
gcs_fuse_csi_driver_config {
enabled = true
}
}
workload_identity_config { // required for fuse csi driver
workload_pool = "${var.project_id}.svc.id.goog"
}
ip_allocation_policy {
cluster_secondary_range_name = var.secondary_ip_range_name_for_pods
services_secondary_range_name = var.secondary_ip_range_name_for_services
}
logging_service = "none"
deletion_protection = false
release_channel {
channel = var.autoupdate ? "STABLE" : "UNSPECIFIED"
}
}