Last modified October 28, 2019

gsctl create nodepool

Node pools are a new concept to be introduced soon to Giant Swarm customers on AWS.

The gsctl create nodepool command allows to create a new pool of worker nodes in cluster.

Usage

Execute the command giving the cluster ID as a positional argument. Further options can be given as command line flags.

Example:

gsctl create nodepool f01r4 \
    --name "General purpose m4.2xlarge 3AZ autoscaling" \
    --aws-instance-type m4.2xlarge \
    --num-availability-zones 3 \
    --nodes-min 3 \
    --nodes-max 20

Options

  • -n, --name: Name or purpose description of the node pool. Defaults to “Unnamed node pool”.
  • --num-availability-zones: Number of availability zones to use. Default is 1. Use this option if you don’t care about the specific zones to use.
  • --availability-zones: Comma-separated list of availability zones to use, instead of setting a number. Use this option if you care about the exact zones to use.
  • --aws-instance-type: EC2 instance type to use for workers, e. g. m5.2xlarge.
  • --nodes-min: Minimum number of worker nodes for the node pool. Defaults to 10.
  • --nodes-max: Maximum number of worker nodes for the node pool. Defaults to 3.