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: modules/workerpools/README.md
+29-29Lines changed: 29 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,25 @@
1
-
# Worker groups
1
+
# Worker pools
2
2
3
3
This sub-module supports different modes of OKE worker node management with advanced configuration.
4
4
5
5
## Usage
6
-
Worker groups are configured with the optional `worker_groups` array.
6
+
Worker pools are configured with the optional `worker_pools` array.
7
7
8
-
The module is implemented in the parent module for general use, and can also be used directly by running `terraform init/apply` in this directory or with a separate state. In this case, the `workergroup` module adds pools to an existing cluster.
8
+
The module is implemented in the parent module for general use, and can also be used directly by running `terraform init/apply` in this directory or with a separate state. In this case, the `worker_pools` module adds pools to an existing cluster.
1.*e.g.*`terraform refresh`*update convenience variables e.g. worker_primary_ips*
20
20
21
21
### Mode
22
-
The `mode` parameter determines the mechanism used to provision and manage nodes in the worker group. Currently the only available mode is `node-pool`.
22
+
The `mode` parameter determines the mechanism used to provision and manage nodes in the worker pool. Currently the only available mode is `node-pool`.
23
23
24
24
#### **`node-pool`**_(default)_
25
25
See [Scaling Kubernetes Clusters and Node Pools](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengscalingkubernetesclustersnodepools.htm) for more information.
@@ -36,21 +36,21 @@ example-pool = {
36
36
```
37
37
38
38
### Defaults
39
-
Many parameters to a worker group can be defined at multiple levels, taken in priority: `Group > Variable > built-in default`. This enables sparse definition of worker groups that share many traits.
39
+
Many parameters to a worker pool can be defined at multiple levels, taken in priority: `Group > Variable > built-in default`. This enables sparse definition of worker pools that share many traits.
40
40
```yaml
41
41
label_prefix = ""
42
-
worker_group_enabled = true
43
-
worker_group_size = 0
44
-
worker_group_image_id = "ocid1.image..." # Required here and/or on group
45
-
worker_group_mode = "node-pool"
46
-
worker_group_shape = "VM.Standard.E4.Flex"
47
-
worker_group_ocpus = 2
48
-
worker_group_memory = 16
49
-
worker_group_boot_volume_size = 100
42
+
worker_pool_enabled = true
43
+
worker_pool_size = 0
44
+
worker_pool_image_id = "ocid1.image..." # Required here and/or on group
45
+
worker_pool_mode = "node-pool"
46
+
worker_pool_shape = "VM.Standard.E4.Flex"
47
+
worker_pool_ocpus = 2
48
+
worker_pool_memory = 16
49
+
worker_pool_boot_volume_size = 100
50
50
worker_nsg_ids = []
51
51
worker_compartment_id = "" # Defaults to compartment_id when empty
52
-
worker_group_primary_subnet_id = "" # Defaults to Terraform-managed when empty
53
-
worker_groups = [
52
+
worker_pool_subnet_id = "" # Defaults to Terraform-managed when empty
| <aname="input_enabled"></a> [enabled](#input\_enabled)| Default for whether to apply resources for a group |`bool`|`true`| no |
108
108
| <aname="input_freeform_tags"></a> [freeform\_tags](#input\_freeform\_tags)| Tags to apply to created resources |`map(string)`|`{}`| no |
109
109
| <aname="input_home_region"></a> [home\_region](#input\_home\_region)| The tenancy's home region. Required to perform identity operations. |`string`|`""`| no |
110
-
| <aname="input_image_id"></a> [image\_id](#input\_image\_id)| Default image OCID for worker groups when unspecified and image\_type = custom |`string`|`""`| no |
110
+
| <aname="input_image_id"></a> [image\_id](#input\_image\_id)| Default image OCID for worker pools when unspecified and image\_type = custom |`string`|`""`| no |
111
111
| <aname="input_image_type"></a> [image\_type](#input\_image\_type)| Whether to use a Platform, OKE or custom image. When custom is set, the image\_id must be specified. |`string`|`"custom"`| no |
112
112
| <aname="input_kubeproxy_mode"></a> [kubeproxy\_mode](#input\_kubeproxy\_mode)| The kube-proxy mode to use for a worker node. |`string`|`"iptables"`| no |
113
113
| <aname="input_label_prefix"></a> [label\_prefix](#input\_label\_prefix)| A string that will be prepended to all resources |`string`|`""`| no |
114
114
| <aname="input_memory"></a> [memory](#input\_memory)| Default memory in GB for flex shapes |`number`|`16`| no |
115
-
| <aname="input_mode"></a> [mode](#input\_mode)| Default management mode for worker groups when unspecified |`string`|`"node-pool"`| no |
115
+
| <aname="input_mode"></a> [mode](#input\_mode)| Default management mode for worker pools when unspecified |`string`|`"node-pool"`| no |
116
116
| <aname="input_network_compartment_id"></a> [network\_compartment\_id](#input\_network\_compartment\_id)| The compartment id where network resources will be created. |`string`|`""`| no |
117
117
| <aname="input_ocpus"></a> [ocpus](#input\_ocpus)| Default ocpus for flex shapes |`number`|`1`| no |
118
118
| <aname="input_os"></a> [os](#input\_os)| The name of image to use. |`string`|`"Oracle Linux"`| no |
| <aname="input_primary_subnet_id"></a> [primary\_subnet\_id](#input\_primary\_subnet\_id)| The subnet OCID used for instances |`string`| n/a | yes |
123
123
| <aname="input_region"></a> [region](#input\_region)| The OCI region where OKE resources will be created. |`string`|`"us-ashburn-1"`| no |
124
124
| <aname="input_shape"></a> [shape](#input\_shape)| Default shape for instance pools |`string`|`"VM.Standard.E4.Flex"`| no |
125
-
| <aname="input_size"></a> [size](#input\_size)| Default number of desired nodes for created worker groups|`number`|`0`| no |
125
+
| <aname="input_size"></a> [size](#input\_size)| Default number of desired nodes for created worker pools|`number`|`0`| no |
126
126
| <aname="input_ssh_public_key"></a> [ssh\_public\_key](#input\_ssh\_public\_key)| n/a |`string`|`""`| no |
127
127
| <aname="input_ssh_public_key_path"></a> [ssh\_public\_key\_path](#input\_ssh\_public\_key\_path)| n/a |`string`|`""`| no |
128
128
| <aname="input_tenancy_id"></a> [tenancy\_id](#input\_tenancy\_id)| The tenancy id of the OCI Cloud Account in which to create the resources. |`string`|`""`| no |
| <aname="input_use_volume_encryption"></a> [use\_volume\_encryption](#input\_use\_volume\_encryption)| Whether to use OCI KMS to encrypt Kubernetes Nodepool's boot/block volume. |`bool`|`false`| no |
132
132
| <aname="input_user_id"></a> [user\_id](#input\_user\_id)| The id of the user that terraform will use to create the resources. |`string`|`""`| no |
133
133
| <aname="input_volume_kms_key_id"></a> [volume\_kms\_key\_id](#input\_volume\_kms\_key\_id)| The OCID of the OCI KMS key to be used as the master encryption key for Boot Volume and Block Volume encryption. |`string`|`""`| no |
134
-
| <aname="input_worker_compartment_id"></a> [worker\_compartment\_id](#input\_worker\_compartment\_id)| The compartment id where worker group resources will be created. |`string`|`""`| no |
135
-
| <aname="input_worker_groups"></a> [worker\_groups](#input\_worker\_groups)| Tuple of OKE worker groups where each key maps to the OCID of an OCI resource, and value contains its definition |`any`|`{}`| no |
134
+
| <aname="input_worker_compartment_id"></a> [worker\_compartment\_id](#input\_worker\_compartment\_id)| The compartment id where worker pool resources will be created. |`string`|`""`| no |
135
+
| <aname="input_worker_pools"></a> [worker\_groups](#input\_worker\_groups)| Tuple of OKE worker pools where each key maps to the OCID of an OCI resource, and value contains its definition |`any`|`{}`| no |
136
136
| <aname="input_worker_nsg_ids"></a> [worker\_nsg\_ids](#input\_worker\_nsg\_ids)| An additional list of network security groups (NSG) OCIDs for node security |`list(string)`|`[]`| no |
0 commit comments