Skip to content

Commit 7d74c87

Browse files
Ladasclaude
andcommitted
🔧 Increase file descriptor limits in Kind cluster
Addresses root cause of Promtail "too many open files" error by increasing kubelet maxOpenFiles to 1M. This allows Promtail DaemonSet to watch log files across all namespaces without exhausting file descriptors. Changes: - Added KubeletConfiguration to Kind cluster config - Set maxOpenFiles: 1000000 (sufficient for large clusters) - Set maxPods: 110 (kubelet default) Requires cluster recreation to apply: ./scripts/kind/00-cleanup.sh ./scripts/kind/01-create-cluster.sh 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 46a9c8d commit 7d74c87

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/kind/01-create-cluster.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ if kind get clusters 2>/dev/null | grep -q "^${CLUSTER_NAME}$"; then
1919
fi
2020

2121
# Create cluster with port mappings for Istio Gateway
22-
echo "📦 Creating Kind cluster with Istio port mappings..."
22+
# File descriptor limits increased for Promtail log collection (requires 1M open files for large clusters)
23+
echo "📦 Creating Kind cluster with Istio port mappings and increased file limits..."
2324
cat <<EOF | kind create cluster --name "${CLUSTER_NAME}" --config=-
2425
kind: Cluster
2526
apiVersion: kind.x-k8s.io/v1alpha4
@@ -31,6 +32,10 @@ nodes:
3132
nodeRegistration:
3233
kubeletExtraArgs:
3334
node-labels: "ingress-ready=true"
35+
- |
36+
kind: KubeletConfiguration
37+
maxOpenFiles: 1000000
38+
maxPods: 110
3439
extraPortMappings:
3540
# HTTP - Maps host:8080 to NodePort 30080 (gateway HTTP)
3641
- containerPort: 30080

0 commit comments

Comments
 (0)