You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*** Copyright 2024 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.*/# [START gke_quickstart_autopilot_cluster]resource"google_compute_network""default" {
name="example-network"auto_create_subnetworks=falseenable_ula_internal_ipv6=true
}
resource"google_compute_subnetwork""default" {
name="example-subnetwork"ip_cidr_range="10.0.0.0/16"region="asia-southeast1"stack_type="IPV4_IPV6"ipv6_access_type="INTERNAL"network=google_compute_network.default.idsecondary_ip_range {
range_name="services-range"ip_cidr_range="192.168.0.0/24"
}
secondary_ip_range {
range_name="pod-ranges"ip_cidr_range="192.168.1.0/24"
}
}
resource"google_container_cluster""default" {
name="example-autopilot-cluster"location="asia-southeast1-a"enable_autopilot=trueenable_l4_ilb_subsetting=truenetwork=google_compute_network.default.idsubnetwork=google_compute_subnetwork.default.idip_allocation_policy {
stack_type="IPV4_IPV6"services_secondary_range_name=google_compute_subnetwork.default.secondary_ip_range[0].range_namecluster_secondary_range_name=google_compute_subnetwork.default.secondary_ip_range[1].range_name
}
# Set `deletion_protection` to `true` will ensure that one cannot# accidentally delete this instance by use of Terraform.deletion_protection=false
}
# [END gke_quickstart_autopilot_cluster]
Terraform Version
v1.11.4
Terraform Provider Versions
not defined in code?
Additional information
No response
The text was updated successfully, but these errors were encountered:
TL;DR
I can not create GKE cluster following the instruction at:
https://cloud.google.com/kubernetes-engine/docs/quickstarts/create-cluster-using-terraform
Did someone really verify the code before publish it?
Error: missing provider configuration, zonal autopilot?
Expected behavior
No response
Observed behavior
No response
Terraform Configuration
Terraform Version
Terraform Provider Versions
Additional information
No response
The text was updated successfully, but these errors were encountered: