Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Modify the kubelet configuration of the GKE node.

Former Community Member
Not applicable

I would like to adjust the "shutdownGracePeriod" and "shutdownGracePeriodCriticalPods" for my GKE nodes that use Spot VMs, but I noticed that there is no relevant configuration mentioned in the official documentation [1].

How can I modify these settings?

[1] https://cloud.google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options

 

1 3 2,432
3 REPLIES 3

Two things:

1) You are correct in that we don't allow you to modify these values on GKE
2) For Spot VMs, changing the default settings would effectively be meaningless because Spot VMs will terminate in 30 secs so the total time GKE can allow is 30 secs.

There is an early access program for a new Spot 120s termination notification feature.  If you have an Google account team, you can reach out to them or you can file a support ticket.

If neither of those are an option, you can message me directly.

Do you have options for normal VMs  or any other way we can edit the kubelet config. I wanna adjust the following configs


evictionSoft:
nodefs.available: 25%
evictionSoftGracePeriod:
nodefs.available: 120s

@Former Community Member wrote:

I would like to adjust the "shutdownGracePeriod" and "shutdownGracePeriodCriticalPods" for my GKE nodes that use Spot VMs, but I noticed that there is no relevant configuration mentioned in the official documentation [1].

How can I modify these settings?

[1] https://cloud.google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options

 



@Former Community Member wrote:

I would like to adjust the "shutdownGracePeriod" and "shutdownGracePeriodCriticalPods" for my GKE nodes that use Spot VMs, but I noticed that there is no relevant configuration mentioned in the official documentation [1].

How can I modify these settings?

[1] https://cloud.google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options

 




Nothing out of the box.  In theory, you could run a privileged DaemonSet which edits the Kubelet config and restarts the Kubelet, but I don't really know many people who do this.

Top Labels in this Space
Top Solution Authors