Created
May 13, 2025 08:01
-
-
Save GTRekter/b1f030614d6f763e2782c77ad44f3162 to your computer and use it in GitHub Desktop.
This script increases the default limits configured by Rancher Desktop to accommodate tools like Prometheus.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat > "$HOME/Library/Application Support/rancher-desktop/lima/_config/override.yaml" << 'EOT' | |
provision: | |
- mode: system | |
script: | | |
#!/bin/sh | |
# Increase per-user file descriptor limits | |
cat << 'EOF' > /etc/security/limits.d/rancher-desktop.conf | |
* soft nofile 82920 | |
* hard nofile 82920 | |
EOF | |
# Increase inotify watch and instance counts for Prometheus | |
sysctl -w fs.inotify.max_user_watches=524288 | |
sysctl -w fs.inotify.max_user_instances=512 | |
EOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment