The following command creates a cluster of size 30, with node autoscaling based on cluster load that scales the default node pool to a maximum of 50 nodes and a minimum of 15 nodes:
gcloud container clusters create [CLUSTER_NAME] --num-nodes 30 \ --enable-autoscaling --min-nodes 15 --max-nodes 50 [--zone [COMPUTE_ZONE]]
In this command:
- 
--enable-autoscaling indicates that autoscaling is enabled. 
- 
--min-nodes specifies the minimum number of nodes for the default node pool. 
- 
--max-nodes specifies the maximum number of nodes for the default node pool. 
- 
--zone specifies the [compute zone] in which the autoscaler should create new nodes.