modules/gke-autopilot-private-cluster/variables.tf (63 lines of code) (raw):
# Copyright 2023 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.
variable "project_id" {
type = string
description = "GCP project id"
}
variable "region" {
type = string
description = "GCP project region or zone"
default = "us-central1"
}
## network variables
variable "network_name" {
type = string
}
variable "subnetwork_name" {
type = string
}
## GKE variables
variable "cluster_name" {
type = string
}
variable "cluster_labels" {
type = map(any)
description = "GKE cluster labels"
}
variable "kubernetes_version" {
type = string
}
variable "release_channel" {
type = string
}
variable "cluster_regional" {
type = bool
}
variable "cluster_region" {
type = string
}
variable "cluster_zones" {
type = list(string)
}
variable "ip_range_pods" {
type = string
}
variable "ip_range_services" {
type = string
}
variable "master_authorized_networks" {
type = list(object({
cidr_block = string
display_name = string
}))
default = []
}
variable "deletion_protection" {
type = bool
default = false
}
variable "master_ipv4_cidr_block" {
type = string
default = ""
}
variable "ray_addon_enabled" {
description = "Enable ray addon by default"
type = bool
default = true
}