aws-nodegroup

Creates an additional nodegroup for the primary EKS cluster.

This module creates an additional nodegroup for the primary EKS cluster. Note that the aws-eks module creates a default nodegroup so this should only be used when you want one more.

Fields

  • labels - Optional. labels for the kubernetes nodes Default {}
  • max_nodes - Optional. Max number of nodes to allow via autoscaling Default 15
  • min_nodes - Optional. Min number of nodes to allow via autoscaling Default 3
  • node_disk_size - Optional. The size of disk to give the nodes' ec2s in GB. Default 20
  • node_instance_type - Optional. he ec2 instance type for the nodes. Default t3.medium
  • use_gpu - Optional. Should we expect and use the gpus present in the ec2? Default False
  • spot_instances - Optional. A boolean specifying whether to use spot instances for the default nodegroup or not. The spot instances will be configured to have the max price equal to the on-demand price (so no danger of overcharging). WARNING: By using spot instances you must accept the real risk of frequent abrupt node terminations and possibly (although extremely rarely) even full blackouts (all nodes die). The former is a small risk as containers of Opta services will be automatically restarted on surviving nodes. So just make sure to specify a minimum of more than 1 containers – Opta by default attempts to spread them out amongst many nodes. The former is a graver concern which can be addressed by having multiple node groups of different instance types (see aws nodegroup module) and ideally at least one non-spot. Default False

Outputs

Last modified September 22, 2021: Updating latest references (62bb6e2)