In a GCP Kubernetes cluster there is no command to find out the maximum number of nodes
According to this official doc
Standard cluster:
1)Maximum number of nodes per GKE standard cluster is 15000 nodes
2)Maximum number of node pools in a cluster is 15 node pools
3)Maximum number of nodes in each pool is 1000 nodes.
Note:
- If you plan to run more than 2,000 nodes, use a regional cluster.
- If you want to run more than 5,000 nodes it requires lifting a cluster size quota. Contact support for assistance.
Autopilot cluster:
1)Maximum number of nodes per Autopilot cluster is 5000 nodes
Note:
- If you plan to run more than 1,000 nodes, use GKE Autopilot version 1.23 or newer.
- Running more than 400 nodes may require lifting a cluster size quota for clusters that were created on earlier versions. Contact support for assistance.