PARALLAX

eks_nodegroup

Manage EKS Nodegroup module

Collection: community.aws

Full Name: community.aws.eks_nodegroup

Synopsis

Manage EKS Nodegroup module

Parameters

NameTypeRequiredDefaultDescription
access_keystr
ami_typestr
aws_ca_bundlepath
aws_configdict
capacity_typestrON_DEMAND
cluster_namestryes
debug_botocore_endpoint_logsboolfalse
disk_sizeint
endpoint_urlstr
instance_typeslist
labelsdictmap[]
launch_templatedict
namestryes
node_rolestr
profilestr
purge_tagsbooltrue
regionstr
release_versionstr
remote_accessdict
scaling_configdictmap[desired_size:1 max_size:2 min_size:1]
secret_keystr
session_tokenstr
statestrpresent
subnetslist
tagsdict
taintslist[]
update_configdictmap[max_unavailable:1]
validate_certsbooltrue
waitboolfalse
wait_timeoutint1200

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
Search
    ↑ ↓ move↵ openesc close