terraform plan (GKE using Terraform) 2022
Jump to navigation
Jump to search
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: # google_compute_network.vpc will be created + resource "google_compute_network" "vpc" { + auto_create_subnetworks = false + delete_default_routes_on_create = false + gateway_ipv4 = (known after apply) + id = (known after apply) + internal_ipv6_range = (known after apply) + mtu = (known after apply) + name = "your-project-vpc" + project = (known after apply) + routing_mode = (known after apply) + self_link = (known after apply) }
# google_compute_subnetwork.subnet will be created + resource "google_compute_subnetwork" "subnet" { + creation_timestamp = (known after apply) + external_ipv6_prefix = (known after apply) + fingerprint = (known after apply) + gateway_address = (known after apply) + id = (known after apply) + ip_cidr_range = "10.10.0.0/24" + ipv6_cidr_range = (known after apply) + name = "your-project-subnet" + network = "your-project-vpc" + private_ipv6_google_access = (known after apply) + project = (known after apply) + purpose = (known after apply) + region = "us-central1" + secondary_ip_range = (known after apply) + self_link = (known after apply) + stack_type = (known after apply) } # google_container_cluster.primary will be created + resource "google_container_cluster" "primary" { + cluster_ipv4_cidr = (known after apply) + datapath_provider = (known after apply) + default_max_pods_per_node = (known after apply) + enable_binary_authorization = false + enable_intranode_visibility = (known after apply) + enable_kubernetes_alpha = false + enable_legacy_abac = false + enable_shielded_nodes = true + endpoint = (known after apply) + id = (known after apply) + initial_node_count = 1 + label_fingerprint = (known after apply) + location = "us-central1" + logging_service = (known after apply) + master_version = (known after apply) + monitoring_service = (known after apply) + name = "your-project-gke" + network = "your-project-vpc" + networking_mode = (known after apply) + node_locations = (known after apply) + node_version = (known after apply) + operation = (known after apply) + private_ipv6_google_access = (known after apply) + project = (known after apply) + remove_default_node_pool = true + self_link = (known after apply) + services_ipv4_cidr = (known after apply) + subnetwork = "your-project-subnet" + tpu_ipv4_cidr_block = (known after apply) + addons_config { + cloudrun_config { + disabled = (known after apply) + load_balancer_type = (known after apply) } + gcp_filestore_csi_driver_config { + enabled = (known after apply) } + horizontal_pod_autoscaling { + disabled = (known after apply) } + http_load_balancing { + disabled = (known after apply) } + network_policy_config { + disabled = (known after apply) } } + authenticator_groups_config { + security_group = (known after apply) } + cluster_autoscaling { + enabled = (known after apply) + auto_provisioning_defaults { + image_type = (known after apply) + oauth_scopes = (known after apply) + service_account = (known after apply) } + resource_limits { + maximum = (known after apply) + minimum = (known after apply) + resource_type = (known after apply) } } + confidential_nodes { + enabled = (known after apply) } + database_encryption { + key_name = (known after apply) + state = (known after apply) } + default_snat_status { + disabled = (known after apply) } + ip_allocation_policy { + cluster_ipv4_cidr_block = (known after apply) + cluster_secondary_range_name = (known after apply) + services_ipv4_cidr_block = (known after apply) + services_secondary_range_name = (known after apply) } + logging_config { + enable_components = (known after apply) } + master_auth { + client_certificate = (known after apply) + client_key = (sensitive value) + cluster_ca_certificate = (known after apply) + client_certificate_config { + issue_client_certificate = (known after apply) } } + monitoring_config { + enable_components = (known after apply) } + node_config { + boot_disk_kms_key = (known after apply) + disk_size_gb = (known after apply) + disk_type = (known after apply) + guest_accelerator = (known after apply) + image_type = (known after apply) + labels = (known after apply) + local_ssd_count = (known after apply) + machine_type = (known after apply) + metadata = (known after apply) + min_cpu_platform = (known after apply) + node_group = (known after apply) + oauth_scopes = (known after apply) + preemptible = (known after apply) + service_account = (known after apply) + spot = (known after apply) + tags = (known after apply) + taint = (known after apply) + gcfs_config { + enabled = (known after apply) } + gvnic { + enabled = (known after apply) } + shielded_instance_config { + enable_integrity_monitoring = (known after apply) + enable_secure_boot = (known after apply) } + workload_metadata_config { + mode = (known after apply) } } + node_pool { + initial_node_count = (known after apply) + instance_group_urls = (known after apply) + managed_instance_group_urls = (known after apply) + max_pods_per_node = (known after apply) + name = (known after apply) + name_prefix = (known after apply) + node_count = (known after apply) + node_locations = (known after apply) + version = (known after apply) + autoscaling { + max_node_count = (known after apply) + min_node_count = (known after apply) } + management { + auto_repair = (known after apply) + auto_upgrade = (known after apply) } + node_config { + boot_disk_kms_key = (known after apply) + disk_size_gb = (known after apply) + disk_type = (known after apply) + guest_accelerator = (known after apply) + image_type = (known after apply) + labels = (known after apply) + local_ssd_count = (known after apply) + machine_type = (known after apply) + metadata = (known after apply) + min_cpu_platform = (known after apply) + node_group = (known after apply) + oauth_scopes = (known after apply) + preemptible = (known after apply) + service_account = (known after apply) + spot = (known after apply) + tags = (known after apply) + taint = (known after apply) + gcfs_config { + enabled = (known after apply) } + gvnic { + enabled = (known after apply) } + shielded_instance_config { + enable_integrity_monitoring = (known after apply) + enable_secure_boot = (known after apply) } + workload_metadata_config { + mode = (known after apply) } } + upgrade_settings { + max_surge = (known after apply) + max_unavailable = (known after apply) } } + release_channel { + channel = (known after apply) } + vertical_pod_autoscaling { + enabled = (known after apply) } + workload_identity_config { + workload_pool = (known after apply) } } # google_container_node_pool.primary_nodes will be created + resource "google_container_node_pool" "primary_nodes" { + cluster = "your-project-gke" + id = (known after apply) + initial_node_count = (known after apply) + instance_group_urls = (known after apply) + location = "us-central1" + managed_instance_group_urls = (known after apply) + max_pods_per_node = (known after apply) + name = "your-project-gke" + name_prefix = (known after apply) + node_count = 2 + node_locations = (known after apply) + operation = (known after apply) + project = (known after apply) + version = (known after apply) + management { + auto_repair = (known after apply) + auto_upgrade = (known after apply) } + node_config { + disk_size_gb = (known after apply) + disk_type = (known after apply) + guest_accelerator = (known after apply) + image_type = (known after apply) + labels = { + "env" = "your-project" } + local_ssd_count = (known after apply) + machine_type = "n1-standard-1" + metadata = { + "disable-legacy-endpoints" = "true" } + oauth_scopes = [ + "https://www.googleapis.com/auth/logging.write", + "https://www.googleapis.com/auth/monitoring", ] + preemptible = false + service_account = (known after apply) + spot = false + tags = [ + "gke-node", + "your-project-gke", ] + taint = (known after apply) + shielded_instance_config { + enable_integrity_monitoring = (known after apply) + enable_secure_boot = (known after apply) } + workload_metadata_config { + mode = (known after apply) } } + upgrade_settings { + max_surge = (known after apply) + max_unavailable = (known after apply) } } Plan: 4 to add, 0 to change, 0 to destroy. Changes to Outputs: + kubernetes_cluster_host = (known after apply) + kubernetes_cluster_name = "your-project-gke" + project_id = "your-project" + region = "us-central1" ───────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
Deploy GKE cluster using Terraform
Advertising: