databases/qdrant/terraform/modules/cluster-autopilot/main.tf (25 lines of code) (raw):

# 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 # # https://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_qdrant_autopilot_private_regional_cluster] module "qdrant_cluster" { source = "terraform-google-modules/kubernetes-engine/google//modules/beta-autopilot-private-cluster" version = "~> 31.0" project_id = var.project_id name = "${var.cluster_prefix}-cluster" regional = true region = var.region network = var.network subnetwork = var.subnetwork ip_range_pods = "k8s-pod-range" ip_range_services = "k8s-service-range" create_service_account = true grant_registry_access = true enable_private_endpoint = false enable_private_nodes = true master_ipv4_cidr_block = "172.16.0.0/28" enable_cost_allocation = true deletion_protection = false kubernetes_version = "latest" release_channel = "RAPID" cluster_resource_labels = { name = "${var.cluster_prefix}-cluster" component = "${var.cluster_prefix}-operator" } } # [END gke_qdrant_autopilot_private_regional_cluster]