Skip to content

Instantly share code, notes, and snippets.

@GTRekter
Created May 13, 2025 08:01
Show Gist options
  • Save GTRekter/b1f030614d6f763e2782c77ad44f3162 to your computer and use it in GitHub Desktop.
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.
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