Kubernetes can t start due to too many open files in system

+1 vote
I am trying create a bunch of pods, services and deployment using Kubernetes, but keep getting these errors when I run the kubectl describe command.

for "POD" with RunContainerError: "runContainer: API error (500): Cannot start container bbdb58770a848733bf7130b1b230d809fcec3062b2b16748c5e4a8b12cc0533a: [8] System error: too many open files in system\n"

I am not an Linux expert, so I am just wondering how do I find all the open files and close them?
Jul 5, 2018 in DevOps & Agile by Hannah
• 18,520 points
5,319 views

3 answers to this question.

0 votes

You can confirm which process is hogging file descriptors by running:

lsof | awk '{print $2}' | sort | uniq -c | sort -n

That will give you a sorted list of open FD counts with the pid of the process. Then you can look up each process

ps -p <pid>

answered Jul 5, 2018 by Kalgi
• 52,350 points
0 votes
You could probably try more powerful machines with higher CPU and larger memory. Let me know if it works. Thanks
answered Oct 25, 2018 by Haider
0 votes
Seems like a kernel config issue. If there's nothing important running on the cluster delete the old one and bring up a new cluster.
answered Oct 25, 2018 by Zaid

Related Questions In DevOps & Agile

0 votes
1 answer

How to configure maven in CentOS/ RHEL system?

Hi@akhtar, You can follow the below given steps ...READ MORE

answered Jun 3, 2020 in DevOps & Agile by MD
• 95,460 points
3,980 views
+1 vote
2 answers

is it possible to assign a Feature/User Story/Task to a team [Group] in VSTS

In most cases, we would break Work ...READ MORE

answered Oct 11, 2018 in DevOps & Agile by lina
• 8,220 points
5,433 views
+5 votes
3 answers

Steps to Call Python method in BuildBot

To run python code, you must write ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,300 points

edited Oct 12, 2018 by Kalgi 1,740 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,477 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+13 votes
2 answers
+2 votes
2 answers

how to set different provisioning profiles for different targets using Xcode Build

For multiple targets, each task has to ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,300 points

edited Oct 16, 2018 by Kalgi 4,819 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP