I would like to resize a Node Pool so that it's set to 0 nodes at night and then up again in the morning.
Is it any way to do this within the Google Console or should I use an external Cron job?
Thanks
You can set up two Cloud Scheduler jobs (one in the morning, one at night) that use a Pub/Sub trigger to a Cloud Function, as described in this guide, that in turn uses one of the Client Libraries to update
the node pool by changing the number of nodes with eg. the set_node_pool_size() function from the Python library, while referring to the setSize API call documentation for the input SetNodePoolSizeRequest
object.
This entire setup can be done from the Cloud Console.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加