'Jupyterhub Bitnami pod evicted

I have installed helm chart for jupyterhub bitnami over GKE.

When a singleuser pod is created, it gets "evicted" after some time because of ephermal storage with following error

"Pod ephemeral local storage usage exceeds the total limit 1Gi"

I did not find in documentation how to increase ephermal storage. Can you please tell how can I increase this ephermal storage or what is the alternative way to fix this issue?

enter image description here



Solution 1:[1]

After scratching my head for hours, I had to study the implementation of jupyter kubernetes spawner here and also kubernetes client library here. I've found the way to set ephermal-storage for jupyterhub user notebook. Unfortunately, there was not documentation for it.

I added extraResources in hub.configuration within values.yaml

extraResource:
  limits: 
    ephemeral-storage: '5Gi'
  guarantees:
    ephemeral-storage: '5Gi'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dharman