Skip to content

Instantly share code, notes, and snippets.

View thuanpham582002's full-sized avatar
🍀
cosmic signal

thuanpham582002

🍀
cosmic signal
View GitHub Profile
Pod errors due to “too many open files”
You may encounter that some pods fail to get running and the logs of these pods complain “too many open files”.
This may be caused by running out of inotify resources. Resource limits are defined by fs.inotify.max_user_watches and fs.inotify.max_user_instances system variables. For example, in Ubuntu these default to 8192 and 128 respectively, which is not enough to create multiple kind clusters with many pods.
To increase these limits temporarily run the following commands on the host:
sudo sysctl fs.inotify.max_user_watches=524288
sudo sysctl fs.inotify.max_user_instances=512
To make the changes persistent, edit the file /etc/sysctl.conf and add these lines:
#!/bin/bash
# SoftEther VPN Server Uninstall Script
# Gỡ bỏ hoàn toàn SoftEther VPN Server
# Author: AI Assistant
# Version: 1.0
set -e # Exit on any error
# Colors for output