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
• 16,210 points
576 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
• 41,990 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

+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,110 points
817 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,280 points

edited Oct 12, 2018 by Kalgi 312 views
+3 votes
1 answer

Unable to find the TargetArguments path While configuring dot cover in VSTS

For your unable to find the TargetArguments ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by ajs3033
• 7,280 points
103 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17 in Others by anonymous
2,940 views
+3 votes
1 answer
+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 26, 2018 in DevOps & Agile by ajs3033
• 7,280 points

edited Oct 16, 2018 by Kalgi 711 views