You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: autogen/main/variables.tf.tmpl
+47-12Lines changed: 47 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -852,6 +852,53 @@ variable "timeouts" {
852
852
}
853
853
}
854
854
855
+
variable "monitoring_enabled_components" {
856
+
type = list(string)
857
+
description = "List of services to monitor: SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR and DCGM. 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. Empty list is default GKE configuration."
858
+
default = []
859
+
validation {
860
+
condition = alltrue([
861
+
for c in var.monitoring_enabled_components:
862
+
contains([
863
+
"SYSTEM_COMPONENTS",
864
+
"APISERVER",
865
+
"SCHEDULER",
866
+
"CONTROLLER_MANAGER",
867
+
"STORAGE",
868
+
"HPA",
869
+
"POD",
870
+
"DAEMONSET",
871
+
"DEPLOYMENT",
872
+
"STATEFULSET",
873
+
"WORKLOADS",
874
+
"KUBELET",
875
+
"CADVISOR",
876
+
"DCGM"
877
+
], c)
878
+
])
879
+
error_message = "Valid values are SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, WORKLOADS, KUBELET, CADVISOR and DCGM."
880
+
}
881
+
}
882
+
883
+
variable "logging_enabled_components" {
884
+
type = list(string)
885
+
description = "List of services to monitor: SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration."
886
+
default = []
887
+
validation {
888
+
condition = alltrue([
889
+
for c in var.logging_enabled_components:
890
+
contains([
891
+
"SYSTEM_COMPONENTS",
892
+
"APISERVER",
893
+
"CONTROLLER_MANAGER",
894
+
"SCHEDULER",
895
+
"WORKLOADS"
896
+
], c)
897
+
])
898
+
error_message = "Valid values are SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS."
description = "List of services to monitor: SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR and DCGM. 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. Empty list is default GKE configuration."
877
-
default = []
878
-
}
879
-
880
-
variable "logging_enabled_components" {
881
-
type = list(string)
882
-
description = "List of services to monitor: SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration."
883
-
default = []
884
-
}
885
-
886
921
variable "enable_kubernetes_alpha" {
887
922
type = bool
888
923
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."
Copy file name to clipboardExpand all lines: modules/beta-autopilot-private-cluster/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -121,6 +121,7 @@ Then perform the following commands on the root folder:
121
121
| ip\_range\_services | The _name_ of the secondary subnet range to use for services |`string`| n/a | yes |
122
122
| issue\_client\_certificate | 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! |`bool`|`false`| no |
123
123
| kubernetes\_version | The Kubernetes version of the masters. If set to 'latest' it will pull latest available version in the selected region. |`string`|`"latest"`| no |
124
+
| logging\_enabled\_components | List of services to monitor: SYSTEM\_COMPONENTS, APISERVER, CONTROLLER\_MANAGER, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration. |`list(string)`|`[]`| no |
124
125
| logging\_variant | (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. |`string`|`null`| no |
125
126
| maintenance\_end\_time | Time window specified for recurring maintenance operations in RFC3339 format |`string`|`""`| no |
126
127
| maintenance\_exclusions | List of maintenance exclusions. A cluster can have up to three |`list(object({ name = string, start_time = string, end_time = string, exclusion_scope = string }))`|`[]`| no |
@@ -129,6 +130,7 @@ Then perform the following commands on the root folder:
129
130
| master\_authorized\_networks | List of master authorized networks. If none are provided, disallow external access (except the cluster node IPs, which GKE automatically whitelists). |`list(object({ cidr_block = string, display_name = string }))`|`[]`| no |
130
131
| master\_global\_access\_enabled | Whether the cluster master is accessible globally (from any region) or only within the same region as the private endpoint. |`bool`|`true`| no |
131
132
| master\_ipv4\_cidr\_block | The IP range in CIDR notation to use for the hosted master network. Optional for Autopilot clusters. |`string`|`null`| no |
133
+
| monitoring\_enabled\_components | List of services to monitor: SYSTEM\_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER\_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR and DCGM. 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. Empty list is default GKE configuration. |`list(string)`|`[]`| no |
132
134
| name | The name of the cluster (required) |`string`| n/a | yes |
133
135
| network | The VPC network to host the cluster in (required) |`string`| n/a | yes |
134
136
| network\_project\_id | The project ID of the shared VPC's host (for shared vpc support) |`string`|`""`| no |
Copy file name to clipboardExpand all lines: modules/beta-autopilot-private-cluster/variables.tf
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -519,6 +519,53 @@ variable "timeouts" {
519
519
}
520
520
}
521
521
522
+
variable"monitoring_enabled_components" {
523
+
type=list(string)
524
+
description="List of services to monitor: SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR and DCGM. 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. Empty list is default GKE configuration."
525
+
default=[]
526
+
validation {
527
+
condition=alltrue([
528
+
forcinvar.monitoring_enabled_components:
529
+
contains([
530
+
"SYSTEM_COMPONENTS",
531
+
"APISERVER",
532
+
"SCHEDULER",
533
+
"CONTROLLER_MANAGER",
534
+
"STORAGE",
535
+
"HPA",
536
+
"POD",
537
+
"DAEMONSET",
538
+
"DEPLOYMENT",
539
+
"STATEFULSET",
540
+
"WORKLOADS",
541
+
"KUBELET",
542
+
"CADVISOR",
543
+
"DCGM"
544
+
], c)
545
+
])
546
+
error_message="Valid values are SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, WORKLOADS, KUBELET, CADVISOR and DCGM."
547
+
}
548
+
}
549
+
550
+
variable"logging_enabled_components" {
551
+
type=list(string)
552
+
description="List of services to monitor: SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration."
553
+
default=[]
554
+
validation {
555
+
condition=alltrue([
556
+
forcinvar.logging_enabled_components:
557
+
contains([
558
+
"SYSTEM_COMPONENTS",
559
+
"APISERVER",
560
+
"CONTROLLER_MANAGER",
561
+
"SCHEDULER",
562
+
"WORKLOADS"
563
+
], c)
564
+
])
565
+
error_message="Valid values are SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS."
566
+
}
567
+
}
568
+
522
569
variable"enable_l4_ilb_subsetting" {
523
570
type=bool
524
571
description="Enable L4 ILB Subsetting on the cluster"
Copy file name to clipboardExpand all lines: modules/beta-autopilot-public-cluster/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,14 @@ Then perform the following commands on the root folder:
112
112
| ip\_range\_services | The _name_ of the secondary subnet range to use for services |`string`| n/a | yes |
113
113
| issue\_client\_certificate | 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! |`bool`|`false`| no |
114
114
| kubernetes\_version | The Kubernetes version of the masters. If set to 'latest' it will pull latest available version in the selected region. |`string`|`"latest"`| no |
115
+
| logging\_enabled\_components | List of services to monitor: SYSTEM\_COMPONENTS, APISERVER, CONTROLLER\_MANAGER, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration. |`list(string)`|`[]`| no |
115
116
| logging\_variant | (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. |`string`|`null`| no |
116
117
| maintenance\_end\_time | Time window specified for recurring maintenance operations in RFC3339 format |`string`|`""`| no |
117
118
| maintenance\_exclusions | List of maintenance exclusions. A cluster can have up to three |`list(object({ name = string, start_time = string, end_time = string, exclusion_scope = string }))`|`[]`| no |
118
119
| maintenance\_recurrence | Frequency of the recurring maintenance window in RFC5545 format. |`string`|`""`| no |
119
120
| maintenance\_start\_time | Time window specified for daily or recurring maintenance operations in RFC3339 format |`string`|`"05:00"`| no |
120
121
| master\_authorized\_networks | List of master authorized networks. If none are provided, disallow external access (except the cluster node IPs, which GKE automatically whitelists). |`list(object({ cidr_block = string, display_name = string }))`|`[]`| no |
122
+
| monitoring\_enabled\_components | List of services to monitor: SYSTEM\_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER\_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR and DCGM. 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. Empty list is default GKE configuration. |`list(string)`|`[]`| no |
121
123
| name | The name of the cluster (required) |`string`| n/a | yes |
122
124
| network | The VPC network to host the cluster in (required) |`string`| n/a | yes |
123
125
| network\_project\_id | The project ID of the shared VPC's host (for shared vpc support) |`string`|`""`| no |
Copy file name to clipboardExpand all lines: modules/beta-autopilot-public-cluster/variables.tf
+47Lines changed: 47 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -483,6 +483,53 @@ variable "timeouts" {
483
483
}
484
484
}
485
485
486
+
variable"monitoring_enabled_components" {
487
+
type=list(string)
488
+
description="List of services to monitor: SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, KUBELET, CADVISOR and DCGM. 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. Empty list is default GKE configuration."
489
+
default=[]
490
+
validation {
491
+
condition=alltrue([
492
+
forcinvar.monitoring_enabled_components:
493
+
contains([
494
+
"SYSTEM_COMPONENTS",
495
+
"APISERVER",
496
+
"SCHEDULER",
497
+
"CONTROLLER_MANAGER",
498
+
"STORAGE",
499
+
"HPA",
500
+
"POD",
501
+
"DAEMONSET",
502
+
"DEPLOYMENT",
503
+
"STATEFULSET",
504
+
"WORKLOADS",
505
+
"KUBELET",
506
+
"CADVISOR",
507
+
"DCGM"
508
+
], c)
509
+
])
510
+
error_message="Valid values are SYSTEM_COMPONENTS, APISERVER, SCHEDULER, CONTROLLER_MANAGER, STORAGE, HPA, POD, DAEMONSET, DEPLOYMENT, STATEFULSET, WORKLOADS, KUBELET, CADVISOR and DCGM."
511
+
}
512
+
}
513
+
514
+
variable"logging_enabled_components" {
515
+
type=list(string)
516
+
description="List of services to monitor: SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS. Empty list is default GKE configuration."
517
+
default=[]
518
+
validation {
519
+
condition=alltrue([
520
+
forcinvar.logging_enabled_components:
521
+
contains([
522
+
"SYSTEM_COMPONENTS",
523
+
"APISERVER",
524
+
"CONTROLLER_MANAGER",
525
+
"SCHEDULER",
526
+
"WORKLOADS"
527
+
], c)
528
+
])
529
+
error_message="Valid values are SYSTEM_COMPONENTS, APISERVER, CONTROLLER_MANAGER, SCHEDULER, and WORKLOADS."
530
+
}
531
+
}
532
+
486
533
variable"enable_l4_ilb_subsetting" {
487
534
type=bool
488
535
description="Enable L4 ILB Subsetting on the cluster"
0 commit comments