eks_nodegroup
Manage EKS Nodegroup module
Collection: community.aws
Full Name: community.aws.eks_nodegroup
Synopsis
Manage EKS Nodegroup module
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| access_key | str | |||
| ami_type | str | |||
| aws_ca_bundle | path | |||
| aws_config | dict | |||
| capacity_type | str | ON_DEMAND | ||
| cluster_name | str | yes | ||
| debug_botocore_endpoint_logs | bool | false | ||
| disk_size | int | |||
| endpoint_url | str | |||
| instance_types | list | |||
| labels | dict | map[] | ||
| launch_template | dict | |||
| name | str | yes | ||
| node_role | str | |||
| profile | str | |||
| purge_tags | bool | true | ||
| region | str | |||
| release_version | str | |||
| remote_access | dict | |||
| scaling_config | dict | map[desired_size:1 max_size:2 min_size:1] | ||
| secret_key | str | |||
| session_token | str | |||
| state | str | present | ||
| subnets | list | |||
| tags | dict | |||
| taints | list | [] | ||
| update_config | dict | map[max_unavailable:1] | ||
| validate_certs | bool | true | ||
| wait | bool | false | ||
| wait_timeout | int | 1200 |
Example
yaml
- name: create nodegroup
community.aws.eks_nodegroup:
name: test_nodegroup
state: present
cluster_name: test_cluster
node_role: arn:aws:eks:us-east-1:1231231123:role/asdf
subnets:
- subnet-qwerty123
- subnet-asdfg456
scaling_config:
min_size: 1
max_size: 2
desired_size: 1
disk_size: 20
instance_types: 't3.micro'
ami_type: 'AL2_x86_64'
labels:
'teste': 'test'
taints:
- key: 'test'
value: 'test'
effect: 'NO_SCHEDULE'
capacity_type: 'ON_DEMAND'
- name: Remove an EKS Nodegrop
community.aws.eks_nodegroup:
name: test_nodegroup
cluster_name: test_cluster
wait: true
state: absent