0

I have a cluster with 2 nodes and each node has 10 Gb of boot SSD disk and 375 Gb of Local SSD. I'm worrying about the issue when boot SSD disk is full, GKE will deploy stateless pod in Local SSD or complain no space?

In other words, Local SSD is only used by me explicitely or GKE can use it for its own need?

Rach Id
  • 3
  • 2

1 Answers1

0

In kubelet documentation you can find this flag:

--root-dir string
Directory path for managing kubelet files (volume mounts,etc). (default "/var/lib/kubelet")

This flag sets a place where kubelet stores secrets and some volume mounts so if you are out of space, k8s can fail while creating a pod.


There is also one other path, this one is docker specific. It called data-root and more info can be found here. It defaults to /var/lib/docker and it stores all contrainer's files. So if you are out of disk space you won't be able to create container files and starting new container will fail.

--data-root is the path where persisted data such as images, volumes, and cluster state are stored. The default value is /var/lib/docker.


Conclusion: If you had self-hosted cluster you could just change the defaults and all would work, but because you are using managed k8s cluster (GKE) all you can do is to use bigger boot disk. And also: No, k8s won't automaticaly use other disk (at least as far as I know).

Matt
  • 548
  • 3
  • 8