Commit a8f2521
authored
Fix inotify pre-flight check for PROM_ENABLED on macOS (llm-d#1654)
* Evaluate inotify limit on the kind node, not the host
The Prometheus config-reloader inotify pre-flight check ran an
unconditional cat of /proc/sys/fs/inotify/max_user_instances on the
host, before the cluster existed. On macOS that proc file is absent
(kind runs inside the container-runtime VM), so the check aborted
env-dev-kind with PROM_ENABLED=true.
The limit that applies to pods is the kind node's kernel: the host
kernel on Linux, the runtime VM kernel on macOS. Move the check to
after the node container is created and read the value from inside it,
which is correct on both platforms. Update the remediation message to
cover raising the limit on the host (Linux) and in the runtime VM
(macOS).
Signed-off-by: roytman <roytman@il.ibm.com>
* fix copilot comments
Signed-off-by: roytman <roytman@il.ibm.com>
---------
Signed-off-by: roytman <roytman@il.ibm.com>1 parent 20e61b8 commit a8f2521
1 file changed
Lines changed: 30 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
206 | 213 | | |
| 214 | + | |
207 | 215 | | |
208 | | - | |
209 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
210 | 220 | | |
211 | 221 | | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
212 | 229 | | |
213 | 230 | | |
214 | 231 | | |
| |||
265 | 282 | | |
266 | 283 | | |
267 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
268 | 292 | | |
269 | 293 | | |
270 | 294 | | |
| |||
0 commit comments