Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Steps to fix the error “the node was low on resource ephemeral storage”.
Next
Answered
Maya Brown
  • 18
Maya Brown
Asked: May 18, 20222022-05-18T20:11:22+00:00 2022-05-18T20:11:22+00:00In: Programs

Steps to fix the error “the node was low on resource ephemeral storage”.

  • 18

. Advertisement .

..3..

. Advertisement .

..4..

Here is the program I run:

portal-59978bff4d-2qkgf 0/1 Evicted 0 14m
 release-mgmt-74995bc7dd-nzlgq 0/1 Evicted 0 8m20s
 service-orchestration-79f8dc7dc-kx6g4 0/1 Evicted 0 7m31s
 test-mgmt-7f977567d6-zl7cc 0/1 Evicted 0 8m17s

After I run, it returns an error:

The node was low on resource: ephemeral-storage

Does anyone have any suggestions for the problem below: the node was low on resource ephemeral storage in the programs – How to correct it?

the node was low on resource
  • 2 2 Answers
  • 472 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-06-26T02:23:52+00:00Added an answer on June 26, 2022 at 2:23 am

    The cause:

    You are having troubles with this error because Pods are using the emptyDir volumes with no storage quotas, so they are excluded. Another reason is that there are a lot of log messages which consume the storage.

    Solution:

    You can limit the number of logs stored by configuring the Docker logging driver as the following:

    {
    "log-driver": "json-file",
    "log-opts": {
    "max-size": "100m",
    "max-file": "5"
    }
    }

    To prevent containers from writing any amount of storage to their node filesystem, you also can install a quote like limits.ephemeral-storage, requests.ephemeral-storage.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Inès Henry
    2022-05-26T03:55:30+00:00Added an answer on May 26, 2022 at 3:55 am

    If you use emptyDir volumes, without storage quotas, your storage will be full.

    eviction manager: attempting to reclaim ephemeral-storage

    To limit storage, set a quota limits.ephemeral-storage, requests.ephemeral-storage. Otherwise any container can write any amount to its node folder.

    A sample resource quota definition

    apiVersion: v1
    kind: ResourceQuota
    metadata:
     name: compute-resources
    spec:
     hard:
     pods: "4" 
     requests.cpu: "1" 
     requests.memory: 1Gi 
     requests.ephemeral-storage: 2Gi 
     limits.cpu: "2" 
     limits.memory: 2Gi 
     limits.ephemeral-storage: 4Gi

    Log files can also be a reason for this problem. This question is worth a look.

    • 9
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.