Skip to content

Commit e11787c

Browse files
authored
feat(private_cluster)!: enable private nodes by default (#2064)
1 parent 7cc0626 commit e11787c

File tree

12 files changed

+26
-11
lines changed

12 files changed

+26
-11
lines changed

autogen/main/variables.tf.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ variable "enable_private_endpoint" {
476476
variable "enable_private_nodes" {
477477
type = bool
478478
description = "Whether nodes have internal IP addresses only"
479-
default = false
479+
default = true
480480
}
481481

482482
variable "master_ipv4_cidr_block" {

docs/upgrading_to_v33.0.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Upgrading to v33.0
2+
The v33.0 release of *kubernetes-engine* is a backwards incompatible release.
3+
4+
### Private Cluster Defaults
5+
All private-cluster modules now set `enable_private_nodes` to `true` by default.
6+
To opt out, set `enable_private_nodes` to `false`.
7+
8+
```diff
9+
module "cluster" {
10+
- version = "~> 32.0"
11+
+ version = "~> 33.0"
12+
13+
+ enable_private_nodes = false
14+
}
15+
```

modules/beta-autopilot-private-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Then perform the following commands on the root folder:
9797
| enable\_l4\_ilb\_subsetting | Enable L4 ILB Subsetting on the cluster | `bool` | `false` | no |
9898
| enable\_network\_egress\_export | Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. | `bool` | `false` | no |
9999
| enable\_private\_endpoint | Whether the master's internal IP address is used as the cluster endpoint | `bool` | `false` | no |
100-
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `false` | no |
100+
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `true` | no |
101101
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | `bool` | `true` | no |
102102
| enable\_secret\_manager\_addon | (Beta) Enable the Secret Manager add-on for this cluster | `bool` | `false` | no |
103103
| enable\_tpu | Enable Cloud TPU resources in the cluster. WARNING: changing this after cluster creation is destructive! | `bool` | `false` | no |

modules/beta-autopilot-private-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ variable "enable_private_endpoint" {
279279
variable "enable_private_nodes" {
280280
type = bool
281281
description = "Whether nodes have internal IP addresses only"
282-
default = false
282+
default = true
283283
}
284284

285285
variable "master_ipv4_cidr_block" {

modules/beta-private-cluster-update-variant/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Then perform the following commands on the root folder:
212212
| enable\_network\_egress\_export | Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. | `bool` | `false` | no |
213213
| enable\_pod\_security\_policy | enabled - Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created. Pod Security Policy was removed from GKE clusters with version >= 1.25.0. | `bool` | `false` | no |
214214
| enable\_private\_endpoint | Whether the master's internal IP address is used as the cluster endpoint | `bool` | `false` | no |
215-
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `false` | no |
215+
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `true` | no |
216216
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | `bool` | `true` | no |
217217
| enable\_secret\_manager\_addon | (Beta) Enable the Secret Manager add-on for this cluster | `bool` | `false` | no |
218218
| enable\_shielded\_nodes | Enable Shielded Nodes features on all nodes in this cluster | `bool` | `true` | no |

modules/beta-private-cluster-update-variant/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ variable "enable_private_endpoint" {
463463
variable "enable_private_nodes" {
464464
type = bool
465465
description = "Whether nodes have internal IP addresses only"
466-
default = false
466+
default = true
467467
}
468468

469469
variable "master_ipv4_cidr_block" {

modules/beta-private-cluster/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Then perform the following commands on the root folder:
190190
| enable\_network\_egress\_export | Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. | `bool` | `false` | no |
191191
| enable\_pod\_security\_policy | enabled - Enable the PodSecurityPolicy controller for this cluster. If enabled, pods must be valid under a PodSecurityPolicy to be created. Pod Security Policy was removed from GKE clusters with version >= 1.25.0. | `bool` | `false` | no |
192192
| enable\_private\_endpoint | Whether the master's internal IP address is used as the cluster endpoint | `bool` | `false` | no |
193-
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `false` | no |
193+
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `true` | no |
194194
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | `bool` | `true` | no |
195195
| enable\_secret\_manager\_addon | (Beta) Enable the Secret Manager add-on for this cluster | `bool` | `false` | no |
196196
| enable\_shielded\_nodes | Enable Shielded Nodes features on all nodes in this cluster | `bool` | `true` | no |

modules/beta-private-cluster/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ variable "enable_private_endpoint" {
463463
variable "enable_private_nodes" {
464464
type = bool
465465
description = "Whether nodes have internal IP addresses only"
466-
default = false
466+
default = true
467467
}
468468

469469
variable "master_ipv4_cidr_block" {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ Then perform the following commands on the root folder:
202202
| 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 |
203203
| enable\_network\_egress\_export | Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic. | `bool` | `false` | no |
204204
| enable\_private\_endpoint | Whether the master's internal IP address is used as the cluster endpoint | `bool` | `false` | no |
205-
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `false` | no |
205+
| enable\_private\_nodes | Whether nodes have internal IP addresses only | `bool` | `true` | no |
206206
| enable\_resource\_consumption\_export | Whether to enable resource consumption metering on this cluster. When enabled, a table will be created in the resource export BigQuery dataset to store resource consumption data. The resulting table can be joined with the resource usage table or with BigQuery billing export. | `bool` | `true` | no |
207207
| enable\_shielded\_nodes | Enable Shielded Nodes features on all nodes in this cluster | `bool` | `true` | no |
208208
| enable\_tpu | Enable Cloud TPU resources in the cluster. WARNING: changing this after cluster creation is destructive! | `bool` | `false` | no |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ variable "enable_private_endpoint" {
457457
variable "enable_private_nodes" {
458458
type = bool
459459
description = "Whether nodes have internal IP addresses only"
460-
default = false
460+
default = true
461461
}
462462

463463
variable "master_ipv4_cidr_block" {

0 commit comments

Comments
 (0)