Schedule Cluster resizing on Google Kubernetes Engine

avalero

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

Arnau C.

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]

編集
0

コメントを追加

0

関連記事

分類Dev

Why are there 3 nodes in a default Google Kubernetes Engine cluster?

分類Dev

Why are there 3 nodes in a default Google Kubernetes Engine cluster?

分類Dev

How to enable Client Certificate in Google Kubernetes Engine Cluster

分類Dev

Google Kubernetes Engine&VPN

分類Dev

Google App Engine cron job schedule repeat on days with DST changes

分類Dev

How to create a GCP Kubernetes Engine cluster spanning two regions?

分類Dev

How to remove GPU in Google Kubernetes cluster (GKE)

分類Dev

Google Container Engine(Kubernetes)のDaemonSets

分類Dev

http -> https redirect in Google Kubernetes Engine

分類Dev

Why choosing Google Kubernetes Engine instead of Google AppEngine?

分類Dev

Difference between Google Kubernetes Engine and Google Compute Engine in term of server management?

分類Dev

How to add resource and limits on Kubernetes Engine on Google Cloud Platform

分類Dev

Reset Kubernetes cluster

分類Dev

Kubernetes:Google Kubernetes Engine(gke)でkube-controller-managerのフラグを追加する方法

分類Dev

Google Container Engine(GKE)KubernetesカスタムDNSエントリ

分類Dev

how to connect a kubernetes pod to the outside world without a forwarding rule (google container engine)

分類Dev

Making google maps responsive and resizing

分類Dev

Kubernetes Cluster Context with Multiple Namespaces

分類Dev

How to create a user in a Kubernetes cluster?

分類Dev

How to schedule an Oozie workflow that runs a Java program on a HDInsight cluster

分類Dev

Kubernetes / Google Container Engine(GKE)でStackdriver APIを使用してロギングする

分類Dev

Google Kubernetes Engine:サービスタイプのHTTPSを有効にする

分類Dev

Google Kubernetes Engine:k8s-metadata-proxyへの出力を許可するNetworkPolicy

分類Dev

HPA + Cluster Autoscaler + OPA within Federated Kubernetes cluster on GKE

分類Dev

easiest way to schedule a Google Cloud Dataflow job

分類Dev

How to schedule a docker run on google cloud

分類Dev

How to schedule Google Data Fusion pipeline?

分類Dev

Autoscaling in Google Container Engine

分類Dev

Logging for Google BI Engine

Related 関連記事

  1. 1

    Why are there 3 nodes in a default Google Kubernetes Engine cluster?

  2. 2

    Why are there 3 nodes in a default Google Kubernetes Engine cluster?

  3. 3

    How to enable Client Certificate in Google Kubernetes Engine Cluster

  4. 4

    Google Kubernetes Engine&VPN

  5. 5

    Google App Engine cron job schedule repeat on days with DST changes

  6. 6

    How to create a GCP Kubernetes Engine cluster spanning two regions?

  7. 7

    How to remove GPU in Google Kubernetes cluster (GKE)

  8. 8

    Google Container Engine(Kubernetes)のDaemonSets

  9. 9

    http -> https redirect in Google Kubernetes Engine

  10. 10

    Why choosing Google Kubernetes Engine instead of Google AppEngine?

  11. 11

    Difference between Google Kubernetes Engine and Google Compute Engine in term of server management?

  12. 12

    How to add resource and limits on Kubernetes Engine on Google Cloud Platform

  13. 13

    Reset Kubernetes cluster

  14. 14

    Kubernetes:Google Kubernetes Engine(gke)でkube-controller-managerのフラグを追加する方法

  15. 15

    Google Container Engine(GKE)KubernetesカスタムDNSエントリ

  16. 16

    how to connect a kubernetes pod to the outside world without a forwarding rule (google container engine)

  17. 17

    Making google maps responsive and resizing

  18. 18

    Kubernetes Cluster Context with Multiple Namespaces

  19. 19

    How to create a user in a Kubernetes cluster?

  20. 20

    How to schedule an Oozie workflow that runs a Java program on a HDInsight cluster

  21. 21

    Kubernetes / Google Container Engine(GKE)でStackdriver APIを使用してロギングする

  22. 22

    Google Kubernetes Engine:サービスタイプのHTTPSを有効にする

  23. 23

    Google Kubernetes Engine:k8s-metadata-proxyへの出力を許可するNetworkPolicy

  24. 24

    HPA + Cluster Autoscaler + OPA within Federated Kubernetes cluster on GKE

  25. 25

    easiest way to schedule a Google Cloud Dataflow job

  26. 26

    How to schedule a docker run on google cloud

  27. 27

    How to schedule Google Data Fusion pipeline?

  28. 28

    Autoscaling in Google Container Engine

  29. 29

    Logging for Google BI Engine

ホットタグ

アーカイブ