You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,36 +78,39 @@ Expected .onion addresses are documented in `../www/onion.makeitwork.cloud/index
78
78
79
79
## Resource Management
80
80
81
-
**Do NOT set resource limits** - only set requests. This is a single-node CRC cluster where limits cause problems:
81
+
**Single-node CRC policy:** avoid container CPU/memory reservations by default.
82
82
83
-
- **CPU limits** cause throttling even when the node has spare capacity
84
-
- **Memory limits** prevent pods from using available memory and cause unnecessary OOMs
85
-
- **Requests** are sufficient for scheduling and QoS classification
83
+
- Prefer `resources: {}` or no `resources` block on app containers
84
+
- Avoid both `requests` and `limits` unless a workload has a proven stability need
85
+
- High requests on single-node CRC commonly trigger `Insufficient cpu/memory` scheduling failures
86
+
- CPU limits cause throttling; memory limits can cause avoidable OOM kills
86
87
87
-
When adding new workloads:
88
+
When adding new workloads, default to no container requests/limits:
88
89
```yaml
89
-
resources:
90
-
requests:
91
-
cpu: "100m"
92
-
memory: "128Mi"
93
-
# NO limits section
90
+
containers:
91
+
- name: app
92
+
image: example/image:tag
93
+
resources: {}
94
94
```
95
95
96
-
For operators installed via OLM (Subscription), limits are baked into the CSV and cannot be easily changed. For operators installed via kustomize remote refs, use JSON patches to remove limits:
96
+
For operators installed via OLM (Subscription), tune through supported CR/Subscription fields where available (for example `spec.config.resources: {}` or operator-specific `*_resource_requirements: {}`). If the operator ignores these fields, accept operator defaults.
97
+
98
+
For operators installed via kustomize remote refs, use JSON patches to remove the entire `resources` block:
0 commit comments