/** * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ resource "google_container_cluster" "foo" { addons_config { network_policy_config { disabled = true } } cluster_autoscaling { autoscaling_profile = "BALANCED" enabled = false } cluster_ipv4_cidr = "10.12.0.0/14" cluster_telemetry { type = "ENABLED" } database_encryption { state = "DECRYPTED" } enable_binary_authorization = false enable_intranode_visibility = false enable_kubernetes_alpha = false enable_legacy_abac = false enable_shielded_nodes = false enable_tpu = false location = "us-central1-c" logging_service = "logging.googleapis.com/kubernetes" master_auth { client_certificate_config { issue_client_certificate = false } } monitoring_service = "monitoring.googleapis.com/kubernetes" name = "twenty-namespaces" network = "projects/my-project/global/networks/default" network_policy { enabled = false } networking_mode = "ROUTES" node_config { disk_size_gb = 100 disk_type = "pd-standard" image_type = "COS" machine_type = "n1-standard-1" metadata = { disable-legacy-endpoints = "true" } oauth_scopes = ["https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/logging.write", "https://www.googleapis.com/auth/monitoring", "https://www.googleapis.com/auth/service.management.readonly", "https://www.googleapis.com/auth/servicecontrol", "https://www.googleapis.com/auth/trace.append"] preemptible = false service_account = "default" shielded_instance_config { enable_integrity_monitoring = true enable_secure_boot = false } workload_metadata_config { node_metadata = "GKE_METADATA_SERVER" } } node_version = "1.16.15-gke.1600" pod_security_policy_config { enabled = false } project = "my-project" release_channel = {} resource_labels = { managed-by-cnrm = "true" } subnetwork = "projects/my-project/regions/us-central1/subnetworks/default" workload_identity_config { workload_pool = "my-project.svc.id.goog" } }