Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default machine_type to e2-standard-4 #22

Merged
merged 2 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ No modules.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_allowed_ip_ranges"></a> [allowed\_ip\_ranges](#input\_allowed\_ip\_ranges) | Allowed IP ranges to connect to master | `list(string)` | <pre>[<br/> "0.0.0.0/0"<br/>]</pre> | no |
| <a name="input_cluster_generic_node_config"></a> [cluster\_generic\_node\_config](#input\_cluster\_generic\_node\_config) | Configuration for the generic node pool. This includes:<br/>- disk\_size\_gb: Size of the disk attached to each node (default: "100")<br/>- disk\_type: Type of disk attached to each node (pd-standard, pd-balanced, pd-ssd) (default: "pd-balanced")<br/>- machine\_type: The name of a Google Compute Engine machine type (default: "e2-medium")<br/>- enable\_secure\_boot: Secure Boot helps ensure that the system only runs authentic software (default: true)<br/>- enable\_integrity\_monitoring: Enables monitoring and attestation of the boot integrity (default: true)<br/>- auto\_repair: Flag to enable auto repair for the nodes (default: true)<br/>- auto\_upgrade: Flag to enable auto upgrade for the nodes (default: true)<br/>- node\_count: The number of nodes per instance group (default: 1)<br/>- workload\_metadata\_config\_mode: How to expose metadata to workloads running on the node (default: "GKE\_METADATA")<br/>- service\_account: The Google Cloud Platform Service Account (default: "default")<br/>- preemptible: Flag to enable preemptible nodes (default: false)<br/>- spot: Flag to enable spot instances (default: true) | <pre>object({<br/> disk_size_gb = optional(string, "100")<br/> disk_type = optional(string, "pd-balanced")<br/> machine_type = optional(string, "e2-medium")<br/> enable_secure_boot = optional(bool, true)<br/> enable_integrity_monitoring = optional(bool, true)<br/> auto_repair = optional(bool, true)<br/> auto_upgrade = optional(bool, true)<br/> node_count = optional(number, 1)<br/> workload_metadata_config_mode = optional(string, "GKE_METADATA")<br/> service_account = optional(string, "default")<br/> preemptible = optional(bool, false)<br/> spot = optional(bool, true)<br/> })</pre> | `{}` | no |
| <a name="input_cluster_generic_node_config"></a> [cluster\_generic\_node\_config](#input\_cluster\_generic\_node\_config) | Configuration for the generic node pool. This includes:<br/>- disk\_size\_gb: Size of the disk attached to each node (default: "100")<br/>- disk\_type: Type of disk attached to each node (pd-standard, pd-balanced, pd-ssd) (default: "pd-balanced")<br/>- machine\_type: The name of a Google Compute Engine machine type (default: "e2-standard-4")<br/>- enable\_secure\_boot: Secure Boot helps ensure that the system only runs authentic software (default: true)<br/>- enable\_integrity\_monitoring: Enables monitoring and attestation of the boot integrity (default: true)<br/>- auto\_repair: Flag to enable auto repair for the nodes (default: true)<br/>- auto\_upgrade: Flag to enable auto upgrade for the nodes (default: true)<br/>- node\_count: The number of nodes per instance group (default: 1)<br/>- workload\_metadata\_config\_mode: How to expose metadata to workloads running on the node (default: "GKE\_METADATA")<br/>- service\_account: The Google Cloud Platform Service Account (default: "default")<br/>- preemptible: Flag to enable preemptible nodes (default: false)<br/>- spot: Flag to enable spot instances (default: true) | <pre>object({<br/> disk_size_gb = optional(string, "100")<br/> disk_type = optional(string, "pd-balanced")<br/> machine_type = optional(string, "e2-standard-4")<br/> enable_secure_boot = optional(bool, true)<br/> enable_integrity_monitoring = optional(bool, true)<br/> auto_repair = optional(bool, true)<br/> auto_upgrade = optional(bool, true)<br/> node_count = optional(number, 1)<br/> workload_metadata_config_mode = optional(string, "GKE_METADATA")<br/> service_account = optional(string, "default")<br/> preemptible = optional(bool, false)<br/> spot = optional(bool, true)<br/> })</pre> | `{}` | no |
| <a name="input_cluster_master_ipv4_cidr_block"></a> [cluster\_master\_ipv4\_cidr\_block](#input\_cluster\_master\_ipv4\_cidr\_block) | Master nodes ipv4 cidr | `string` | n/a | yes |
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name of the cluster. If use\_existing\_cluster is enabled cluster\_name is used to fetch details of existing cluster | `string` | n/a | yes |
| <a name="input_cluster_nap_node_config"></a> [cluster\_nap\_node\_config](#input\_cluster\_nap\_node\_config) | Configuration for the NAP node pool. This includes:<br/>- disk\_size\_gb: Size of the disk attached to each node (default: "300")<br/>- disk\_type: Type of disk attached to each node (pd-standard, pd-balanced, pd-ssd) (default: "pd-balanced")<br/>- enable\_secure\_boot: Secure Boot helps ensure that the system only runs authentic software (default: true)<br/>- enable\_integrity\_monitoring: Enables monitoring and attestation of the boot integrity (default: true)<br/>- autoscaling\_profile: Profile for autoscaling optimization (default: "OPTIMIZE\_UTILIZATION")<br/>- max\_cpu: Maximum CPU cores allowed per node (default: 1024)<br/>- max\_memory: Maximum memory in MB allowed per node (default: 8172)<br/>- auto\_repair: Flag to enable auto repair for the nodes (default: true)<br/>- auto\_upgrade: Flag to enable auto upgrade for the nodes (default: true)<br/>- max\_surge: Maximum number of nodes that can be created beyond the current size during updates (default: 1)<br/>- max\_unavailable: Maximum number of nodes that can be unavailable during updates (default: 0) | <pre>object({<br/> disk_size_gb = optional(string, "300")<br/> disk_type = optional(string, "pd-balanced")<br/> enable_secure_boot = optional(bool, true)<br/> enable_integrity_monitoring = optional(bool, true)<br/> autoscaling_profile = optional(string, "OPTIMIZE_UTILIZATION")<br/> max_cpu = optional(number, 1024)<br/> max_memory = optional(number, 8172)<br/> auto_repair = optional(bool, true)<br/> auto_upgrade = optional(bool, true)<br/> max_surge = optional(number, 1)<br/> max_unavailable = optional(number, 0)<br/> })</pre> | `{}` | no |
Expand All @@ -46,7 +46,7 @@ No modules.
| <a name="input_cluster_secondary_range_name"></a> [cluster\_secondary\_range\_name](#input\_cluster\_secondary\_range\_name) | VPC Secondary range name for pods | `string` | `""` | no |
| <a name="input_cluster_subnet_id"></a> [cluster\_subnet\_id](#input\_cluster\_subnet\_id) | Subnetwork name for the cluster. | `string` | n/a | yes |
| <a name="input_control_plane_enabled"></a> [control\_plane\_enabled](#input\_control\_plane\_enabled) | Whether control plane is enabled or not | `bool` | `false` | no |
| <a name="input_control_plane_pool_config"></a> [control\_plane\_pool\_config](#input\_control\_plane\_pool\_config) | Control plane node pool config | <pre>object({<br/> disk_size_gb = optional(string, "100")<br/> disk_type = optional(string, "pd-balanced")<br/> machine_type = optional(string, "e2-medium")<br/> autoscaling = optional(object({<br/> min_node_count = optional(number, 1)<br/> max_node_count = optional(number, 2)<br/> location_policy = optional(string, "BALANCED")<br/> }), {})<br/> enable_secure_boot = optional(bool, true)<br/> enable_integrity_monitoring = optional(bool, true)<br/> auto_repair = optional(bool, true)<br/> auto_upgrade = optional(bool, true)<br/> workload_metadata_config_mode = optional(string, "GKE_METADATA")<br/> service_account = optional(string, "default")<br/> labels = optional(map(string), {<br/> "class.truefoundry.io/component" = "control-plane"<br/> })<br/> taints = optional(object(<br/> {<br/> key = optional(string, "class.truefoundry.io/component")<br/> value = optional(string, "control-plane")<br/> effect = optional(string, "NO_SCHEDULE")<br/> }<br/> ), {})<br/> preemptible = optional(bool, false)<br/> spot = optional(bool, true)<br/> })</pre> | `{}` | no |
| <a name="input_control_plane_pool_config"></a> [control\_plane\_pool\_config](#input\_control\_plane\_pool\_config) | Control plane node pool config | <pre>object({<br/> disk_size_gb = optional(string, "100")<br/> disk_type = optional(string, "pd-balanced")<br/> machine_type = optional(string, "e2-standard-4")<br/> autoscaling = optional(object({<br/> min_node_count = optional(number, 1)<br/> max_node_count = optional(number, 2)<br/> location_policy = optional(string, "BALANCED")<br/> }), {})<br/> enable_secure_boot = optional(bool, true)<br/> enable_integrity_monitoring = optional(bool, true)<br/> auto_repair = optional(bool, true)<br/> auto_upgrade = optional(bool, true)<br/> workload_metadata_config_mode = optional(string, "GKE_METADATA")<br/> service_account = optional(string, "default")<br/> labels = optional(map(string), {<br/> "class.truefoundry.io/component" = "control-plane"<br/> })<br/> taints = optional(object(<br/> {<br/> key = optional(string, "class.truefoundry.io/component")<br/> value = optional(string, "control-plane")<br/> effect = optional(string, "NO_SCHEDULE")<br/> }<br/> ), {})<br/> preemptible = optional(bool, false)<br/> spot = optional(bool, true)<br/> })</pre> | `{}` | no |
| <a name="input_deletion_protection"></a> [deletion\_protection](#input\_deletion\_protection) | Deletion protection enabled/disabled | `bool` | `false` | no |
| <a name="input_enable_container_image_streaming"></a> [enable\_container\_image\_streaming](#input\_enable\_container\_image\_streaming) | Enable/disable container image streaming | `bool` | `true` | no |
| <a name="input_kubernetes_version"></a> [kubernetes\_version](#input\_kubernetes\_version) | Version of GKE | `string` | `"1.28"` | no |
Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ variable "cluster_generic_node_config" {
Configuration for the generic node pool. This includes:
- disk_size_gb: Size of the disk attached to each node (default: "100")
- disk_type: Type of disk attached to each node (pd-standard, pd-balanced, pd-ssd) (default: "pd-balanced")
- machine_type: The name of a Google Compute Engine machine type (default: "e2-medium")
- machine_type: The name of a Google Compute Engine machine type (default: "e2-standard-4")
- enable_secure_boot: Secure Boot helps ensure that the system only runs authentic software (default: true)
- enable_integrity_monitoring: Enables monitoring and attestation of the boot integrity (default: true)
- auto_repair: Flag to enable auto repair for the nodes (default: true)
Expand All @@ -73,7 +73,7 @@ variable "cluster_generic_node_config" {
type = object({
disk_size_gb = optional(string, "100")
disk_type = optional(string, "pd-balanced")
machine_type = optional(string, "e2-medium")
machine_type = optional(string, "e2-standard-4")
enable_secure_boot = optional(bool, true)
enable_integrity_monitoring = optional(bool, true)
auto_repair = optional(bool, true)
Expand Down Expand Up @@ -163,7 +163,7 @@ variable "control_plane_pool_config" {
type = object({
disk_size_gb = optional(string, "100")
disk_type = optional(string, "pd-balanced")
machine_type = optional(string, "e2-medium")
machine_type = optional(string, "e2-standard-4")
autoscaling = optional(object({
min_node_count = optional(number, 1)
max_node_count = optional(number, 2)
Expand Down