From 5bceb97c4015719df0cbfdb4b773f87587ad74ef Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Thu, 24 Oct 2019 13:29:20 -0500 Subject: [PATCH 01/10] Updated node_pools variable documentation --- autogen/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/autogen/README.md b/autogen/README.md index 300717fdd2..2a7a06d5e8 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -183,6 +183,22 @@ In order to operate with the Service Account you must activate the following API - Compute Engine API - compute.googleapis.com - Kubernetes Engine API - container.googleapis.com +## node_pools Variable +The node_pools variable takes the following parameters: + +name - (Optional) The name of the node pool. If left blank, Terraform will auto-generate a unique name +min_count - (Required) Minimum number of nodes in the NodePool. Must be >=0 and <= max_count +max_count - (Required) Maximum number of nodes in the NodePool. Must be >= min_count +machine_type - (Optional) The name of a Google Compute Engine machine type. Defaults to n1-standard-1 +disk_size_gb - (Optional) Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB +disk_type - (Optional) Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard' +image_type - (Optional) The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool +preemptible - (Optional) A boolean that represents whether or not the underlying node VMs are preemptible +service_account - (Optional) The service account to be used by the Node VMs. If not specified, the "default" service account is used +initial_node_count - (Optional) The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource +auto_repair - (Optional) Whether the nodes will be automatically repaired +auto_upgrade - (Optional) Whether the nodes will be automatically upgraded + ## File structure The project has the following folders and files: From 21303df887a081aeb9545a85c72e989bafd6fddf Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Thu, 24 Oct 2019 16:02:32 -0500 Subject: [PATCH 02/10] Added tables to the documentation --- autogen/README.md | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/autogen/README.md b/autogen/README.md index 2a7a06d5e8..f5a5c2ab9d 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -186,18 +186,20 @@ In order to operate with the Service Account you must activate the following API ## node_pools Variable The node_pools variable takes the following parameters: -name - (Optional) The name of the node pool. If left blank, Terraform will auto-generate a unique name -min_count - (Required) Minimum number of nodes in the NodePool. Must be >=0 and <= max_count -max_count - (Required) Maximum number of nodes in the NodePool. Must be >= min_count -machine_type - (Optional) The name of a Google Compute Engine machine type. Defaults to n1-standard-1 -disk_size_gb - (Optional) Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB -disk_type - (Optional) Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard' -image_type - (Optional) The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool -preemptible - (Optional) A boolean that represents whether or not the underlying node VMs are preemptible -service_account - (Optional) The service account to be used by the Node VMs. If not specified, the "default" service account is used -initial_node_count - (Optional) The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource -auto_repair - (Optional) Whether the nodes will be automatically repaired -auto_upgrade - (Optional) Whether the nodes will be automatically upgraded +| Name | Description | Requirement | +| --- | --- | --- | +| name | The name of the node pool. If left blank, Terraform will auto-generate a unique name | Optional | +| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | Required | +| max_count | Maximum number of nodes in the NodePool. Must be >= min_count | Required | +| machine_type | The name of a Google Compute Engine machine type. Defaults to n1-standard-1 | Optional | +| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB | Optional | +| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard' | Optional | +| image_type | The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool | Optional | +| preemptible | A boolean that represents whether or not the underlying node VMs are preemptible | Optional | +| service_account | The service account to be used by the Node VMs. If not specified, the "default" service account is used | Optional | +| initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | Optional | +| auto_repair | Whether the nodes will be automatically repaired | Optional | +| auto_upgrade | Whether the nodes will be automatically upgraded | Optional | ## File structure The project has the following folders and files: From b8ff54ed440b9d666488141db7e9695b5db337fb Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Wed, 30 Oct 2019 17:44:28 -0500 Subject: [PATCH 03/10] Made changes to the variables --- autogen/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autogen/README.md b/autogen/README.md index f5a5c2ab9d..ec91e7e360 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -183,14 +183,14 @@ In order to operate with the Service Account you must activate the following API - Compute Engine API - compute.googleapis.com - Kubernetes Engine API - container.googleapis.com -## node_pools Variable +## node_pools variable The node_pools variable takes the following parameters: | Name | Description | Requirement | | --- | --- | --- | | name | The name of the node pool. If left blank, Terraform will auto-generate a unique name | Optional | -| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | Required | -| max_count | Maximum number of nodes in the NodePool. Must be >= min_count | Required | +| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Default value is 1 | Optional | +| max_count | Maximum number of nodes in the NodePool. Must be >= min_count. Default value is 100 | Optional | | machine_type | The name of a Google Compute Engine machine type. Defaults to n1-standard-1 | Optional | | disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB | Optional | | disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard' | Optional | From fa1e5b69e07bdf761cfd01f08ef70cc5cc1a0fc2 Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Fri, 1 Nov 2019 10:55:09 -0500 Subject: [PATCH 04/10] Added the autoscaling property --- autogen/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/autogen/README.md b/autogen/README.md index ec91e7e360..34b06c21e5 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -189,6 +189,7 @@ The node_pools variable takes the following parameters: | Name | Description | Requirement | | --- | --- | --- | | name | The name of the node pool. If left blank, Terraform will auto-generate a unique name | Optional | +| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. Default value is true | Optional | | min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Default value is 1 | Optional | | max_count | Maximum number of nodes in the NodePool. Must be >= min_count. Default value is 100 | Optional | | machine_type | The name of a Google Compute Engine machine type. Defaults to n1-standard-1 | Optional | From 018820a8625d4b694e08beceae7464412addb54a Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Fri, 1 Nov 2019 12:48:31 -0500 Subject: [PATCH 05/10] Default column added --- autogen/README.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/autogen/README.md b/autogen/README.md index 34b06c21e5..4bad9d4030 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -186,21 +186,21 @@ In order to operate with the Service Account you must activate the following API ## node_pools variable The node_pools variable takes the following parameters: -| Name | Description | Requirement | -| --- | --- | --- | -| name | The name of the node pool. If left blank, Terraform will auto-generate a unique name | Optional | -| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage. Default value is true | Optional | -| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count. Default value is 1 | Optional | -| max_count | Maximum number of nodes in the NodePool. Must be >= min_count. Default value is 100 | Optional | -| machine_type | The name of a Google Compute Engine machine type. Defaults to n1-standard-1 | Optional | -| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. Defaults to 100GB | Optional | -| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd'). If unspecified, the default disk type is 'pd-standard' | Optional | -| image_type | The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool | Optional | -| preemptible | A boolean that represents whether or not the underlying node VMs are preemptible | Optional | -| service_account | The service account to be used by the Node VMs. If not specified, the "default" service account is used | Optional | -| initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | Optional | -| auto_repair | Whether the nodes will be automatically repaired | Optional | -| auto_upgrade | Whether the nodes will be automatically upgraded | Optional | +| Name | Description | Default | Requirement | +| --- | --- | --- | --- | +| name | The name of the node pool | "" | Optional | +| autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional | +| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | +| max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | +| machine_type | The name of a Google Compute Engine machine type | n1-standard-1 | Optional | +| disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100GB | Optional | +| disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional | +| image_type | The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool | COS | Optional | +| preemptible | A boolean that represents whether or not the underlying node VMs are preemptible | false | Optional | +| service_account | The service account to be used by the Node VMs | "" | Optional | +| initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | 0 | Optional | +| auto_repair | Whether the nodes will be automatically repaired | true | Optional | +| auto_upgrade | Whether the nodes will be automatically upgraded | true | Optional | ## File structure The project has the following folders and files: From 0dff25bbd62aa2fa010f6b3494fcf9c657c75219 Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Fri, 1 Nov 2019 12:50:29 -0500 Subject: [PATCH 06/10] Default column added --- autogen/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen/README.md b/autogen/README.md index 4bad9d4030..c5e11d8a37 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -188,7 +188,7 @@ The node_pools variable takes the following parameters: | Name | Description | Default | Requirement | | --- | --- | --- | --- | -| name | The name of the node pool | "" | Optional | +| name | The name of the node pool | " " | Optional | | autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional | | min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | | max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | @@ -197,7 +197,7 @@ The node_pools variable takes the following parameters: | disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional | | image_type | The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool | COS | Optional | | preemptible | A boolean that represents whether or not the underlying node VMs are preemptible | false | Optional | -| service_account | The service account to be used by the Node VMs | "" | Optional | +| service_account | The service account to be used by the Node VMs | " " | Optional | | initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | 0 | Optional | | auto_repair | Whether the nodes will be automatically repaired | true | Optional | | auto_upgrade | Whether the nodes will be automatically upgraded | true | Optional | From 400f241d7aa64c836d936ae724152930e9224d3d Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Mon, 4 Nov 2019 15:18:05 -0600 Subject: [PATCH 07/10] Made changes to the table --- autogen/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen/README.md b/autogen/README.md index c5e11d8a37..8fd883b890 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -192,7 +192,7 @@ The node_pools variable takes the following parameters: | autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional | | min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | | max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | -| machine_type | The name of a Google Compute Engine machine type | n1-standard-1 | Optional | +| machine_type | The name of a Google Compute Engine machine type | n1-standard-2 | Optional | | disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100GB | Optional | | disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional | | image_type | The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool | COS | Optional | @@ -200,7 +200,7 @@ The node_pools variable takes the following parameters: | service_account | The service account to be used by the Node VMs | " " | Optional | | initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | 0 | Optional | | auto_repair | Whether the nodes will be automatically repaired | true | Optional | -| auto_upgrade | Whether the nodes will be automatically upgraded | true | Optional | +| auto_upgrade | Whether the nodes will be automatically upgraded | false | Optional | ## File structure The project has the following folders and files: From 9f87ead0747ef4c15474719f64fb7b3696a51c42 Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Mon, 4 Nov 2019 23:13:27 -0600 Subject: [PATCH 08/10] Added node_locations --- autogen/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/autogen/README.md b/autogen/README.md index 8fd883b890..feb32a253f 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -190,6 +190,7 @@ The node_pools variable takes the following parameters: | --- | --- | --- | --- | | name | The name of the node pool | " " | Optional | | autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional | +| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters | " " | Optional | | min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | | max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | | machine_type | The name of a Google Compute Engine machine type | n1-standard-2 | Optional | From 3e8620a6d3df6f0d43f6fa9d0947c76638fe561b Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Fri, 8 Nov 2019 23:41:26 -0600 Subject: [PATCH 09/10] Updated auto upgrade --- autogen/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/autogen/README.md b/autogen/README.md index a7eb9e10f8..dc44c5a758 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -187,20 +187,20 @@ The node_pools variable takes the following parameters: | Name | Description | Default | Requirement | | --- | --- | --- | --- | -| name | The name of the node pool | " " | Optional | +| auto_repair | Whether the nodes will be automatically repaired | true | Optional | | autoscaling | Configuration required by cluster autoscaler to adjust the size of the node pool to the current cluster usage | true | Optional | -| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters | " " | Optional | -| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | -| max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | -| machine_type | The name of a Google Compute Engine machine type | n1-standard-2 | Optional | +| auto_upgrade | Whether the nodes will be automatically upgraded | true (if cluster is regional) | Optional | | disk_size_gb | Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB | 100GB | Optional | | disk_type | Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') | pd-standard | Optional | | image_type | The image type to use for this node. Note that changing the image type will delete and recreate all nodes in the node pool | COS | Optional | +| initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | 0 | Optional | +| machine_type | The name of a Google Compute Engine machine type | n1-standard-2 | Optional | +| max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | +| min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | +| name | The name of the node pool | " " | Optional | +| node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters | " " | Optional | | preemptible | A boolean that represents whether or not the underlying node VMs are preemptible | false | Optional | | service_account | The service account to be used by the Node VMs | " " | Optional | -| initial_node_count | The initial number of nodes for the pool. In regional or multi-zonal clusters, this is the number of nodes per zone. Changing this will force recreation of the resource | 0 | Optional | -| auto_repair | Whether the nodes will be automatically repaired | true | Optional | -| auto_upgrade | Whether the nodes will be automatically upgraded | false | Optional | ## File structure The project has the following folders and files: From 53e23593ea2269105d5f5b362af503b8a0a5886c Mon Sep 17 00:00:00 2001 From: neelesh9795 Date: Mon, 18 Nov 2019 10:43:50 -0600 Subject: [PATCH 10/10] node count added --- autogen/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/autogen/README.md b/autogen/README.md index dc44c5a758..328fd92311 100644 --- a/autogen/README.md +++ b/autogen/README.md @@ -198,6 +198,7 @@ The node_pools variable takes the following parameters: | max_count | Maximum number of nodes in the NodePool. Must be >= min_count | 100 | Optional | | min_count | Minimum number of nodes in the NodePool. Must be >=0 and <= max_count | 1 | Optional | | name | The name of the node pool | " " | Optional | +| node_count | The number of nodes in the nodepool when autoscaling is false | 2 | Required (when autoscaling is false) | | node_locations | The list of zones in which the cluster's nodes are located. Nodes must be in the region of their regional cluster or in the same region as their cluster's zone for zonal clusters | " " | Optional | | preemptible | A boolean that represents whether or not the underlying node VMs are preemptible | false | Optional | | service_account | The service account to be used by the Node VMs | " " | Optional |