I'm observing a strange behaviour of a newly created cluster in GKE. Just after creating it, there is one node. When I create my first namespace, it autoscales up to 2 nodes, although the resources on the first node are still very low. What could be the cause of that and a way to prevent it? I've created my cluster with the following definition (using python API):
cluster={
"name": "mycluster",
"initial_cluster_version": "latest",
"network_policy": {
"enabled": True,
"provider": "PROVIDER_UNSPECIFIED"
},
"node_pools": [
{
"name": "default",
"autoscaling": {
"enabled": True,
"max_node_count": 5,
"min_node_count": 1
},
"config": {
"image_type": "UBUNTU",
"machine_type": "n1-standard-4",
"oauth_scopes": [
# Allows pulling images from GCR
"https://www.googleapis.com/auth/devstorage.read_only",
# Needed for monitoring
"https://www.googleapis.com/auth/logging.write",
"https://www.googleapis.com/auth/monitoring"
]
},
"initial_node_count": 1
}
]
},