GKE cluster shutdown

22 Views Asked by At

Want to stop GKE cluster while cluster is not in use on night time or weekend. Approach should be like workload will not be hampered. Once I scale up it should run fine . Tell me the process of it if anyone has done this task.

1

There are 1 best solutions below

0
Nani On

GKE clusters cannot be stopped once they are created. However, if you want to scale down the number of nodes during weekends and then scale them back up on weekdays, you can use Cloud Scheduler to schedule a job to run a command that changes the number of nodes.

There are some tutorials, you may check them out.

Scaling down Google Kubernetes cluster to zero during off-peak hours

Scaling nodes in Kubernetes on a schedule.

Programmatically switch off the nodes in a GKE cluster with Cloud Scheduler