Skip to content

Commit d1fa68a

Browse files
feat: enable L4 ILB subsetting support for safer clusters
1 parent 303b85d commit d1fa68a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

modules/safer-cluster-update-variant/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ For simplicity, we suggest using `roles/container.admin` and
221221
| enable\_cost\_allocation | Enables Cost Allocation Feature and the cluster name and namespace of your GKE workloads appear in the labels field of the billing export to BigQuery | `bool` | `false` | no |
222222
| enable\_gcfs | Enable image streaming on cluster level. | `bool` | `false` | no |
223223
| enable\_intranode\_visibility | Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network | `bool` | `false` | no |
224+
| enable\_l4\_ilb\_subsetting | Enable L4 ILB Subsetting on the cluster | `bool` | `false` | no |
224225
| enable\_mesh\_certificates | Controls the issuance of workload mTLS certificates. When enabled the GKE Workload Identity Certificates controller and node agent will be deployed in the cluster. Requires Workload Identity. | `bool` | `false` | no |
225226
| enable\_pod\_security\_policy | enabled - Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created. | `bool` | `false` | no |
226227
| enable\_private\_endpoint | When true, the cluster's private endpoint is used as the cluster endpoint and access through the public endpoint is disabled. When false, either endpoint can be used. This field only applies to private clusters, when enable\_private\_nodes is true | `bool` | `true` | no |

modules/safer-cluster-update-variant/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ module "gke" {
165165
// Enable cost allocation support
166166
enable_cost_allocation = var.enable_cost_allocation
167167

168+
// Enable L4 ILB subsetting on the cluster
169+
enable_l4_ilb_subsetting = var.enable_l4_ilb_subsetting
170+
168171
// Use of PodSecurityPolicy admission controller
169172
// https://cloud.google.com/kubernetes-engine/docs/how-to/pod-security-policies
170173
enable_pod_security_policy = var.enable_pod_security_policy

modules/safer-cluster-update-variant/variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ variable "enable_cost_allocation" {
379379
default = false
380380
}
381381

382+
variable "enable_l4_ilb_subsetting" {
383+
type = bool
384+
description = "Enable L4 ILB Subsetting on the cluster"
385+
default = false
386+
}
387+
382388
variable "sandbox_enabled" {
383389
type = bool
384390
description = "(Beta) Enable GKE Sandbox (Do not forget to set `image_type` = `COS_CONTAINERD` to use it)."

0 commit comments

Comments
 (0)