-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetadata.yaml
More file actions
833 lines (832 loc) · 40.5 KB
/
metadata.yaml
File metadata and controls
833 lines (832 loc) · 40.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
# Copyright 2025 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.
apiVersion: blueprints.cloud.google.com/v1alpha1
kind: BlueprintMetadata
metadata:
name: terraform-google-kubernetes-engine
annotations:
config.kubernetes.io/local-config: "true"
spec:
info:
title: Terraform Kubernetes Engine Module
source:
repo: https://github.com/terraform-google-modules/terraform-google-kubernetes-engine.git
sourceType: git
version: 38.0.1
actuationTool:
flavor: Terraform
version: ">=1.3"
description: {}
content:
subBlueprints:
- name: auth
location: modules/auth
- name: beta-autopilot-private-cluster
location: modules/beta-autopilot-private-cluster
- name: beta-autopilot-public-cluster
location: modules/beta-autopilot-public-cluster
- name: beta-private-cluster
location: modules/beta-private-cluster
- name: beta-private-cluster-update-variant
location: modules/beta-private-cluster-update-variant
- name: beta-public-cluster
location: modules/beta-public-cluster
- name: beta-public-cluster-update-variant
location: modules/beta-public-cluster-update-variant
- name: binary-authorization
location: modules/binary-authorization
- name: fleet-app-operator-permissions
location: modules/fleet-app-operator-permissions
- name: fleet-membership
location: modules/fleet-membership
- name: gke-autopilot-cluster
location: modules/gke-autopilot-cluster
- name: gke-node-pool
location: modules/gke-node-pool
- name: gke-standard-cluster
location: modules/gke-standard-cluster
- name: hub-legacy
location: modules/hub-legacy
- name: private-cluster
location: modules/private-cluster
- name: private-cluster-update-variant
location: modules/private-cluster-update-variant
- name: safer-cluster
location: modules/safer-cluster
- name: safer-cluster-update-variant
location: modules/safer-cluster-update-variant
- name: services
location: modules/services
- name: workload-identity
location: modules/workload-identity
examples:
- name: autopilot_private_firewalls
location: examples/autopilot_private_firewalls
- name: confidential_autopilot_private
location: examples/confidential_autopilot_private
- name: confidential_safer_cluster
location: examples/confidential_safer_cluster
- name: deploy_service
location: examples/deploy_service
- name: disable_client_cert
location: examples/disable_client_cert
- name: gke_autopilot_cluster
location: examples/gke_autopilot_cluster
- name: gke_standard_cluster
location: examples/gke_standard_cluster
- name: island_cluster_anywhere_in_gcp_design
location: examples/island_cluster_anywhere_in_gcp_design
- name: island_cluster_with_vm_router
location: examples/island_cluster_with_vm_router
- name: node_pool
location: examples/node_pool
- name: node_pool_update_variant
location: examples/node_pool_update_variant
- name: node_pool_update_variant_beta
location: examples/node_pool_update_variant_beta
- name: node_pool_update_variant_public_beta
location: examples/node_pool_update_variant_public_beta
- name: private_zonal_with_networking
location: examples/private_zonal_with_networking
- name: regional_private_node_pool_oauth_scopes
location: examples/regional_private_node_pool_oauth_scopes
- name: safer_cluster
location: examples/safer_cluster
- name: safer_cluster_iap_bastion
location: examples/safer_cluster_iap_bastion
- name: shared_vpc
location: examples/shared_vpc
- name: simple_autopilot_private
location: examples/simple_autopilot_private
- name: simple_autopilot_private_cmek
location: examples/simple_autopilot_private_cmek
- name: simple_autopilot_private_non_default_sa
location: examples/simple_autopilot_private_non_default_sa
- name: simple_autopilot_public
location: examples/simple_autopilot_public
- name: simple_fleet_app_operator_permissions
location: examples/simple_fleet_app_operator_permissions
- name: simple_regional
location: examples/simple_regional
- name: simple_regional_beta
location: examples/simple_regional_beta
- name: simple_regional_cluster_autoscaling
location: examples/simple_regional_cluster_autoscaling
- name: simple_regional_private
location: examples/simple_regional_private
- name: simple_regional_private_beta
location: examples/simple_regional_private_beta
- name: simple_regional_private_with_cluster_version
location: examples/simple_regional_private_with_cluster_version
- name: simple_regional_with_gateway_api
location: examples/simple_regional_with_gateway_api
- name: simple_regional_with_ipv6
location: examples/simple_regional_with_ipv6
- name: simple_regional_with_kubeconfig
location: examples/simple_regional_with_kubeconfig
- name: simple_regional_with_networking
location: examples/simple_regional_with_networking
- name: simple_windows_node_pool
location: examples/simple_windows_node_pool
- name: simple_zonal_private
location: examples/simple_zonal_private
- name: simple_zonal_with_hub
location: examples/simple_zonal_with_hub
- name: simple_zonal_with_hub_kubeconfig
location: examples/simple_zonal_with_hub_kubeconfig
- name: stub_domains
location: examples/stub_domains
- name: stub_domains_private
location: examples/stub_domains_private
- name: stub_domains_upstream_nameservers
location: examples/stub_domains_upstream_nameservers
- name: terraform
location: examples/acm-terraform-blog-part1/terraform
- name: terraform
location: examples/acm-terraform-blog-part2/terraform
- name: terraform
location: examples/acm-terraform-blog-part3/terraform
- name: upstream_nameservers
location: examples/upstream_nameservers
- name: workload_identity
location: examples/workload_identity
- name: workload_metadata_config
location: examples/workload_metadata_config
interfaces:
variables:
- name: project_id
description: The project ID to host the cluster in (required)
varType: string
required: true
- name: name
description: The name of the cluster (required)
varType: string
required: true
- name: description
description: The description of the cluster
varType: string
defaultValue: ""
- name: regional
description: "Whether is a regional cluster (zonal cluster if set false. WARNING: changing this after cluster creation is destructive!)"
varType: bool
defaultValue: true
- name: region
description: The region to host the cluster in (optional if zonal cluster / required if regional)
varType: string
- name: zones
description: The zones to host the cluster in (optional if regional cluster / required if zonal)
varType: list(string)
defaultValue: []
- name: network
description: The VPC network to host the cluster in (required)
varType: string
required: true
- name: network_project_id
description: The project ID of the shared VPC's host (for shared vpc support)
varType: string
defaultValue: ""
- name: subnetwork
description: The subnetwork to host the cluster in (required)
varType: string
required: true
- name: kubernetes_version
description: The Kubernetes version of the masters. If set to 'latest' it will pull latest available version in the selected region.
varType: string
defaultValue: latest
- name: master_authorized_networks
description: List of master authorized networks. If none are provided, disallow external access (except the cluster node IPs, which GKE automatically whitelists).
varType: list(object({ cidr_block = string, display_name = string }))
defaultValue: []
- name: gcp_public_cidrs_access_enabled
description: Allow access through Google Cloud public IP addresses
varType: bool
- name: enable_vertical_pod_autoscaling
description: Vertical Pod Autoscaling automatically adjusts the resources of pods controlled by it
varType: bool
defaultValue: false
- name: horizontal_pod_autoscaling
description: Enable horizontal pod autoscaling addon
varType: bool
defaultValue: true
- name: http_load_balancing
description: Enable httpload balancer addon
varType: bool
defaultValue: true
- name: service_external_ips
description: Whether external ips specified by a service will be allowed in this cluster
varType: bool
defaultValue: false
- name: insecure_kubelet_readonly_port_enabled
description: "Whether or not to set `insecure_kubelet_readonly_port_enabled` for node pool defaults and autopilot clusters. Note: this can be set at the node pool level separately within `node_pools`."
varType: bool
- name: datapath_provider
description: The desired datapath provider for this cluster. By default, `DATAPATH_PROVIDER_UNSPECIFIED` enables the IPTables-based kube-proxy implementation. `ADVANCED_DATAPATH` enables Dataplane-V2 feature.
varType: string
defaultValue: DATAPATH_PROVIDER_UNSPECIFIED
- name: maintenance_start_time
description: Time window specified for daily or recurring maintenance operations in RFC3339 format
varType: string
defaultValue: "05:00"
- name: maintenance_exclusions
description: List of maintenance exclusions. A cluster can have up to three
varType: list(object({ name = string, start_time = string, end_time = string, exclusion_scope = string }))
defaultValue: []
- name: maintenance_end_time
description: Time window specified for recurring maintenance operations in RFC3339 format
varType: string
defaultValue: ""
- name: maintenance_recurrence
description: Frequency of the recurring maintenance window in RFC5545 format.
varType: string
defaultValue: ""
- name: ip_range_pods
description: The _name_ of the secondary subnet ip range to use for pods
varType: string
required: true
- name: additional_ip_range_pods
description: List of _names_ of the additional secondary subnet ip ranges to use for pods
varType: list(string)
defaultValue: []
- name: ip_range_services
description: The _name_ of the secondary subnet range to use for services. If not provided, the default `34.118.224.0/20` range will be used.
varType: string
- name: stack_type
description: The stack type to use for this cluster. Either `IPV4` or `IPV4_IPV6`. Defaults to `IPV4`.
varType: string
defaultValue: IPV4
- name: node_pools
description: List of maps containing node pools
varType: list(map(any))
defaultValue:
- name: default-node-pool
- name: windows_node_pools
description: List of maps containing Windows node pools
varType: list(map(string))
defaultValue: []
- name: node_pools_labels
description: Map of maps containing node labels by node-pool name
varType: map(map(string))
defaultValue:
all: {}
default-node-pool: {}
- name: node_pools_resource_labels
description: Map of maps containing resource labels by node-pool name
varType: map(map(string))
defaultValue:
all: {}
default-node-pool: {}
- name: node_pools_resource_manager_tags
description: Map of maps containing resource manager tags by node-pool name
varType: map(map(string))
defaultValue:
all: {}
default-node-pool: {}
- name: node_pools_metadata
description: Map of maps containing node metadata by node-pool name
varType: map(map(string))
defaultValue:
all: {}
default-node-pool: {}
- name: node_pools_linux_node_configs_sysctls
description: Map of maps containing linux node config sysctls by node-pool name
varType: map(map(string))
defaultValue:
all: {}
default-node-pool: {}
- name: node_pools_cgroup_mode
description: Map of strings containing cgroup node config by node-pool name
varType: map(string)
defaultValue:
all: ""
default-node-pool: ""
- name: node_pools_hugepage_size_2m
description: Map of strings containing hugepage size 2m node config by node-pool name
varType: map(string)
defaultValue:
all: ""
default-node-pool: ""
- name: node_pools_hugepage_size_1g
description: Map of strings containing hugepage size 1g config by node-pool name
varType: map(string)
defaultValue:
all: ""
default-node-pool: ""
- name: enable_cost_allocation
description: 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
varType: bool
defaultValue: false
- name: resource_usage_export_dataset_id
description: The ID of a BigQuery Dataset for using BigQuery as the destination of resource usage export.
varType: string
defaultValue: ""
- name: enable_network_egress_export
description: Whether to enable network egress metering for this cluster. If enabled, a daemonset will be created in the cluster to meter network egress traffic.
varType: bool
defaultValue: false
- name: enable_resource_consumption_export
description: 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.
varType: bool
defaultValue: true
- name: cluster_autoscaling
description: Cluster autoscaling configuration. See [more details](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1beta1/projects.locations.clusters#clusterautoscaling)
varType: |-
object({
enabled = bool
autoscaling_profile = string
min_cpu_cores = optional(number)
max_cpu_cores = optional(number)
min_memory_gb = optional(number)
max_memory_gb = optional(number)
gpu_resources = list(object({ resource_type = string, minimum = number, maximum = number }))
auto_repair = bool
auto_upgrade = bool
disk_size = optional(number)
disk_type = optional(string)
image_type = optional(string)
strategy = optional(string)
max_surge = optional(number)
max_unavailable = optional(number)
node_pool_soak_duration = optional(string)
batch_soak_duration = optional(string)
batch_percentage = optional(number)
batch_node_count = optional(number)
enable_secure_boot = optional(bool, false)
enable_integrity_monitoring = optional(bool, true)
})
defaultValue:
auto_repair: true
auto_upgrade: true
autoscaling_profile: BALANCED
disk_size: 100
disk_type: pd-standard
enable_integrity_monitoring: true
enable_secure_boot: false
enabled: false
gpu_resources: []
image_type: COS_CONTAINERD
max_cpu_cores: 0
max_memory_gb: 0
min_cpu_cores: 0
min_memory_gb: 0
- name: node_pools_taints
description: Map of lists containing node taints by node-pool name
varType: map(list(object({ key = string, value = string, effect = string })))
defaultValue:
all: []
default-node-pool: []
- name: node_pools_tags
description: Map of lists containing node network tags by node-pool name
varType: map(list(string))
defaultValue:
all: []
default-node-pool: []
- name: node_pools_oauth_scopes
description: Map of lists containing node oauth scopes by node-pool name
varType: map(list(string))
defaultValue:
all:
- https://www.googleapis.com/auth/cloud-platform
default-node-pool: []
- name: network_tags
description: (Optional) - List of network tags applied to auto-provisioned node pools.
varType: list(string)
defaultValue: []
- name: stub_domains
description: Map of stub domains and their resolvers to forward DNS queries for a certain domain to an external DNS server
varType: map(list(string))
defaultValue: {}
- name: upstream_nameservers
description: If specified, the values replace the nameservers taken by default from the node’s /etc/resolv.conf
varType: list(string)
defaultValue: []
- name: non_masquerade_cidrs
description: List of strings in CIDR notation that specify the IP address ranges that do not use IP masquerading.
varType: list(string)
defaultValue:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
- name: ip_masq_resync_interval
description: The interval at which the agent attempts to sync its ConfigMap file from the disk.
varType: string
defaultValue: 60s
- name: ip_masq_link_local
description: Whether to masquerade traffic to the link-local prefix (169.254.0.0/16).
varType: bool
defaultValue: false
- name: configure_ip_masq
description: Enables the installation of ip masquerading, which is usually no longer required when using aliasied IP addresses. IP masquerading uses a kubectl call, so when you have a private cluster, you will need access to the API server.
varType: bool
defaultValue: false
- name: logging_service
description: The logging service that the cluster should write logs to. Available options include logging.googleapis.com, logging.googleapis.com/kubernetes (beta), and none
varType: string
defaultValue: logging.googleapis.com/kubernetes
- name: monitoring_service
description: The monitoring service that the cluster should write metrics to. Automatically send metrics from pods in the cluster to the Google Cloud Monitoring API. VM metrics will be collected by Google Compute Engine regardless of this setting Available options include monitoring.googleapis.com, monitoring.googleapis.com/kubernetes (beta) and none
varType: string
defaultValue: monitoring.googleapis.com/kubernetes
- name: create_service_account
description: Defines if service account specified to run nodes should be created.
varType: bool
defaultValue: true
- name: grant_registry_access
description: Grants created cluster-specific service account storage.objectViewer and artifactregistry.reader roles.
varType: bool
defaultValue: false
- name: registry_project_ids
description: Projects holding Google Container Registries. If empty, we use the cluster project. If a service account is created and the `grant_registry_access` variable is set to `true`, the `storage.objectViewer` and `artifactregsitry.reader` roles are assigned on these projects.
varType: list(string)
defaultValue: []
- name: service_account
description: The service account to run nodes as if not overridden in `node_pools`. The create_service_account variable default value (true) will cause a cluster-specific service account to be created. This service account should already exists and it will be used by the node pools. If you wish to only override the service account name, you can use service_account_name variable.
varType: string
defaultValue: ""
- name: service_account_name
description: The name of the service account that will be created if create_service_account is true. If you wish to use an existing service account, use service_account variable.
varType: string
defaultValue: ""
- name: boot_disk_kms_key
description: "The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool, if not overridden in `node_pools`. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption"
varType: string
- name: issue_client_certificate
description: "Issues a client certificate to authenticate to the cluster endpoint. To maximize the security of your cluster, leave this option disabled. Client certificates don't automatically rotate and aren't easily revocable. WARNING: changing this after cluster creation is destructive!"
varType: bool
defaultValue: false
- name: cluster_ipv4_cidr
description: The IP address range of the kubernetes pods in this cluster. Default is an automatically assigned CIDR.
varType: string
- name: cluster_resource_labels
description: The GCE resource labels (a map of key/value pairs) to be applied to the cluster
varType: map(string)
defaultValue: {}
- name: dns_cache
description: The status of the NodeLocal DNSCache addon.
varType: bool
defaultValue: false
- name: authenticator_security_group
description: The name of the RBAC security group for use with Google security groups in Kubernetes RBAC. Group name must be in format gke-security-groups@yourdomain.com
varType: string
- name: identity_namespace
description: The workload pool to attach all Kubernetes service accounts to. (Default value of `enabled` automatically sets project-based pool `[project_id].svc.id.goog`)
varType: string
defaultValue: enabled
- name: enable_mesh_certificates
description: 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.
varType: bool
defaultValue: false
- name: release_channel
description: The release channel of this cluster. Accepted values are `UNSPECIFIED`, `RAPID`, `REGULAR` and `STABLE`. Defaults to `REGULAR`.
varType: string
defaultValue: REGULAR
- name: gateway_api_channel
description: The gateway api channel of this cluster. Accepted values are `CHANNEL_STANDARD` and `CHANNEL_DISABLED`.
varType: string
- name: add_cluster_firewall_rules
description: Create additional firewall rules
varType: bool
defaultValue: false
- name: add_master_webhook_firewall_rules
description: Create master_webhook firewall rules for ports defined in `firewall_inbound_ports`
varType: bool
defaultValue: false
- name: firewall_priority
description: Priority rule for firewall rules
varType: number
defaultValue: 1000
- name: firewall_inbound_ports
description: List of TCP ports for admission/webhook controllers. Either flag `add_master_webhook_firewall_rules` or `add_cluster_firewall_rules` (also adds egress rules) must be set to `true` for inbound-ports firewall rules to be applied.
varType: list(string)
defaultValue:
- "8443"
- "9443"
- "15017"
- name: add_shadow_firewall_rules
description: Create GKE shadow firewall (the same as default firewall rules with firewall logs enabled).
varType: bool
defaultValue: false
- name: shadow_firewall_rules_priority
description: The firewall priority of GKE shadow firewall rules. The priority should be less than default firewall, which is 1000.
varType: number
defaultValue: 999
- name: shadow_firewall_rules_log_config
description: The log_config for shadow firewall rules. You can set this variable to `null` to disable logging.
varType: |-
object({
metadata = string
})
defaultValue:
metadata: INCLUDE_ALL_METADATA
- name: enable_confidential_nodes
description: An optional flag to enable confidential node config.
varType: bool
defaultValue: false
- name: hpa_profile
description: Enable the Horizontal Pod Autoscaling profile for this cluster. Values are "NONE" and "PERFORMANCE".
varType: string
defaultValue: ""
- name: enable_gcfs
description: Enable image streaming on cluster level.
varType: bool
defaultValue: false
- name: enable_secret_manager_addon
description: Enable the Secret Manager add-on for this cluster
varType: bool
defaultValue: false
- name: enable_fqdn_network_policy
description: Enable FQDN Network Policies on the cluster
varType: bool
- name: enable_cilium_clusterwide_network_policy
description: Enable Cilium Cluster Wide Network Policies on the cluster
varType: bool
defaultValue: false
- name: gke_auto_upgrade_config_patch_mode
description: "The selected auto-upgrade patch type. Accepted values are: `ACCELERATED`: Upgrades to the latest available patch version in a given minor and release channel."
varType: string
- name: in_transit_encryption_config
description: Defines the config of in-transit encryption. Valid values are `IN_TRANSIT_ENCRYPTION_DISABLED` and `IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT`.
varType: string
- name: total_egress_bandwidth_tier
description: Specifies the total network bandwidth tier for NodePools in the cluster. Valid values are `TIER_UNSPECIFIED` and `TIER_1`. Defaults to `TIER_UNSPECIFIED`.
varType: string
- name: security_posture_mode
description: Security posture mode. Accepted values are `DISABLED` and `BASIC`. Defaults to `DISABLED`.
varType: string
defaultValue: DISABLED
- name: security_posture_vulnerability_mode
description: Security posture vulnerability mode. Accepted values are `VULNERABILITY_DISABLED`, `VULNERABILITY_BASIC`, and `VULNERABILITY_ENTERPRISE`. Defaults to `VULNERABILITY_DISABLED`.
varType: string
defaultValue: VULNERABILITY_DISABLED
- name: disable_default_snat
description: Whether to disable the default SNAT to support the private use of public IP addresses
varType: bool
defaultValue: false
- name: enable_default_node_pools_metadata
description: Whether to enable the default node pools metadata key-value pairs such as `cluster_name` and `node_pool`
varType: bool
defaultValue: true
- name: notification_config_topic
description: The desired Pub/Sub topic to which notifications will be sent by GKE. Format is projects/{project}/topics/{topic}.
varType: string
defaultValue: ""
- name: notification_filter_event_type
description: Choose what type of notifications you want to receive. If no filters are applied, you'll receive all notification types. Can be used to filter what notifications are sent. Accepted values are UPGRADE_AVAILABLE_EVENT, UPGRADE_EVENT, and SECURITY_BULLETIN_EVENT.
varType: list(string)
defaultValue: []
- name: deletion_protection
description: Whether or not to allow Terraform to destroy the cluster.
varType: bool
defaultValue: true
- name: enable_tpu
description: "Enable Cloud TPU resources in the cluster. WARNING: changing this after cluster creation is destructive!"
varType: bool
defaultValue: false
- name: filestore_csi_driver
description: The status of the Filestore CSI driver addon, which allows the usage of filestore instance as volumes
varType: bool
defaultValue: false
- name: network_policy
description: Enable network policy addon
varType: bool
defaultValue: false
- name: network_policy_provider
description: The network policy provider.
varType: string
defaultValue: CALICO
- name: initial_node_count
description: The number of nodes to create in this cluster's default node pool.
varType: number
defaultValue: 0
- name: remove_default_node_pool
description: Remove default node pool while setting up the cluster
varType: bool
defaultValue: false
- name: disable_legacy_metadata_endpoints
description: Disable the /0.1/ and /v1beta1/ metadata server endpoints on the node. Changing this value will cause all node pools to be recreated.
varType: bool
defaultValue: true
- name: default_max_pods_per_node
description: The maximum number of pods to schedule per node
varType: number
defaultValue: 110
- name: database_encryption
description: "Application-layer Secrets Encryption settings. The object format is {state = string, key_name = string}. Valid values of state are: \"ENCRYPTED\"; \"DECRYPTED\". key_name is the name of a CloudKMS key."
varType: list(object({ state = string, key_name = string }))
defaultValue:
- key_name: ""
state: DECRYPTED
- name: enable_shielded_nodes
description: Enable Shielded Nodes features on all nodes in this cluster
varType: bool
defaultValue: true
- name: enable_binary_authorization
description: Enable BinAuthZ Admission controller
varType: bool
defaultValue: false
- name: node_metadata
description: Specifies how node metadata is exposed to the workload running on the node
varType: string
defaultValue: GKE_METADATA
- name: cluster_dns_provider
description: Which in-cluster DNS provider should be used. PROVIDER_UNSPECIFIED (default) or PLATFORM_DEFAULT or CLOUD_DNS.
varType: string
defaultValue: PROVIDER_UNSPECIFIED
- name: cluster_dns_scope
description: "The scope of access to cluster DNS records. DNS_SCOPE_UNSPECIFIED (default) or CLUSTER_SCOPE or VPC_SCOPE. "
varType: string
defaultValue: DNS_SCOPE_UNSPECIFIED
- name: cluster_dns_domain
description: The suffix used for all cluster service records.
varType: string
defaultValue: ""
- name: additive_vpc_scope_dns_domain
description: This will enable Cloud DNS additive VPC scope. Must provide a domain name that is unique within the VPC. For this to work cluster_dns = `CLOUD_DNS` and cluster_dns_scope = `CLUSTER_SCOPE` must both be set as well.
varType: string
defaultValue: ""
- name: gce_pd_csi_driver
description: Whether this cluster should enable the Google Compute Engine Persistent Disk Container Storage Interface (CSI) Driver.
varType: bool
defaultValue: true
- name: gcs_fuse_csi_driver
description: Whether GCE FUSE CSI driver is enabled for this cluster.
varType: bool
defaultValue: false
- name: gke_backup_agent_config
description: Whether Backup for GKE agent is enabled for this cluster.
varType: bool
defaultValue: false
- name: stateful_ha
description: Whether the Stateful HA Addon is enabled for this cluster.
varType: bool
defaultValue: false
- name: parallelstore_csi_driver
description: Whether the Parallelstore CSI driver Addon is enabled for this cluster.
varType: bool
- name: ray_operator_config
description: The Ray Operator Addon configuration for this cluster.
varType: |-
object({
enabled = bool
logging_enabled = optional(bool, false)
monitoring_enabled = optional(bool, false)
})
defaultValue:
enabled: false
logging_enabled: false
monitoring_enabled: false
- name: timeouts
description: Timeout for cluster operations.
varType: map(string)
defaultValue: {}
- name: monitoring_enabled_components
description: "List of services to monitor: SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR, DCGM, and JOBSET. In beta provider, WORKLOADS is supported on top of those 12 values. (WORKLOADS is deprecated and removed in GKE 1.24.) KUBELET and CADVISOR are only supported in GKE 1.29.3-gke.1093000 and above. JOBSET is only supported in GKE 1.32.1-gke.1357001 and above. Empty list is default GKE configuration."
varType: list(string)
defaultValue: []
- name: logging_enabled_components
description: "List of services to monitor: SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, KCP_CONNECTION, KCP_SSHD, KCP_HPA, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration."
varType: list(string)
defaultValue: []
- name: monitoring_enable_managed_prometheus
description: Configuration for Managed Service for Prometheus. Whether or not the managed collection is enabled.
varType: bool
- name: monitoring_enable_observability_metrics
description: Whether or not the advanced datapath metrics are enabled.
varType: bool
defaultValue: false
- name: monitoring_enable_observability_relay
description: Whether or not the advanced datapath relay is enabled.
varType: bool
defaultValue: false
- name: enable_kubernetes_alpha
description: Whether to enable Kubernetes Alpha features for this cluster. Note that when this option is enabled, the cluster cannot be upgraded and will be automatically deleted after 30 days.
varType: bool
defaultValue: false
- name: config_connector
description: Whether ConfigConnector is enabled for this cluster.
varType: bool
defaultValue: false
- name: enable_intranode_visibility
description: Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network
varType: bool
defaultValue: false
- name: enable_l4_ilb_subsetting
description: Enable L4 ILB Subsetting on the cluster
varType: bool
defaultValue: false
- name: disable_l4_lb_firewall_reconciliation
description: Disable L4 Load Balancer firewall reconciliation
varType: bool
- name: enable_multi_networking
description: Whether multi-networking is enabled for this cluster
varType: bool
- name: enable_identity_service
description: "(Optional) Enable the Identity Service component, which allows customers to use external identity providers with the K8S API. NOTE: Starting on July 1, 2025, new Google Cloud organizations that you create won't support Identity Service for GKE."
varType: bool
defaultValue: false
- name: fleet_project
description: (Optional) Register the cluster with the fleet in this project.
varType: string
- name: logging_variant
description: (Optional) The type of logging agent that is deployed by default for newly created node pools in the cluster. Valid values include DEFAULT and MAX_THROUGHPUT.
varType: string
- name: monitoring_metric_writer_role
description: The monitoring metrics writer role to assign to the GKE node service account
varType: string
defaultValue: roles/monitoring.metricWriter
- name: enterprise_config
description: (Optional) Enable or disable GKE enterprise. Valid values are STANDARD and ENTERPRISE.
varType: string
- name: dns_allow_external_traffic
description: (Optional) Controls whether external traffic is allowed over the dns endpoint.
varType: bool
- name: ip_endpoints_enabled
description: (Optional) Controls whether to allow direct IP access. Defaults to `true`.
varType: bool
outputs:
- name: ca_certificate
description: Cluster ca certificate (base64 encoded)
- name: cluster_id
description: Cluster ID
- name: dns_cache_enabled
description: Whether DNS Cache enabled
- name: endpoint
description: Cluster endpoint
- name: endpoint_dns
description: Cluster endpoint DNS
- name: fleet_membership
description: Fleet membership (if registered)
- name: gateway_api_channel
description: The gateway api channel of this cluster.
- name: horizontal_pod_autoscaling_enabled
description: Whether horizontal pod autoscaling enabled
- name: http_load_balancing_enabled
description: Whether http load balancing enabled
- name: identity_namespace
description: Workload Identity pool
- name: identity_service_enabled
description: Whether Identity Service is enabled
- name: instance_group_urls
description: List of GKE generated instance groups
- name: intranode_visibility_enabled
description: Whether intra-node visibility is enabled
- name: location
description: Cluster location (region if regional cluster, zone if zonal cluster)
- name: logging_service
description: Logging service used
- name: master_authorized_networks_config
description: Networks from which access to master is permitted
- name: master_version
description: Current master kubernetes version
- name: mesh_certificates_config
description: Mesh certificates configuration
- name: min_master_version
description: Minimum master kubernetes version
- name: monitoring_service
description: Monitoring service used
- name: name
description: Cluster name
- name: network_policy_enabled
description: Whether network policy enabled
- name: node_pools_names
description: List of node pools names
- name: node_pools_versions
description: Node pool versions by node pool name
- name: region
description: Cluster region
- name: release_channel
description: The release channel of this cluster
- name: secret_manager_addon_enabled
description: Whether Secret Manager add-on is enabled
- name: service_account
description: The service account to default running nodes as if not overridden in `node_pools`.
- name: tpu_ipv4_cidr_block
description: The IP range in CIDR notation used for the TPUs
- name: type
description: Cluster type (regional / zonal)
- name: vertical_pod_autoscaling_enabled
description: Whether vertical pod autoscaling enabled
- name: zones
description: List of zones in which the cluster resides
requirements:
roles:
- level: Project
roles:
- roles/editor
providerVersions:
- source: hashicorp/google
version: ">= 6.42.0, < 8"
- source: hashicorp/kubernetes
version: ~> 2.10
- source: hashicorp/random
version: ">= 2.1"