0

I am working on a'go' based application and using ephemeral-storage requests and limits in my resource yaml. I have started with requests 64Mi and limits 128Mi but is there a way to calculate the ephemeral storage requirements for a pod?. Also, if my image size is 15MiB do I need to add that also in my resource requests?.

Parth Soni
  • 61
  • 2
  • 12
  • I thought ephemeral storage refers to your ephemeral volume mounts, such as EmptyDirectory. – Aron Jul 04 '22 at 06:56
  • Yes, it's the same. My question was on is there a guideline or method to calculate the requests and limits similar to CPU/memory. – Parth Soni Jul 04 '22 at 12:31
  • You can't calculate it. You need to figure out how much file storage you need... – Aron Jul 04 '22 at 16:36
  • 1
    As far as i know, there is no way of calculating the ephemeral storage required for a pod and this depends on how much storage you are going to use. Depending on this we can [set the right requests and limits in kubernetes](https://learnk8s.io/setting-cpu-memory-limits-requests). This document also covers how [ephemeral storage can be managed](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#local-ephemeral-storage). – Hemanth Kumar Jul 05 '22 at 05:34
  • This [SO](https://stackoverflow.com/questions/59045293/how-to-determine-kubernetes-pod-ephemeral-storage-request-and-limit) also might be helpful to your question. – Hemanth Kumar Jul 05 '22 at 05:36

1 Answers1

1

For greater visibility to the community I am posting this as a solution :

As far as i know, there is no way of calculating the ephemeral storage required for a pod and this depends on how much storage you are going to use. Depending on this we can set the right requests and limits in kubernetes. This document also covers how ephemeral storage can be managed.

This SO also might be helpful to your question.

Hemanth Kumar
  • 2,728
  • 1
  • 4
  • 19