Skip to content

Commit 7084d5e

Browse files
Jonathan Yujawnsy
Jonathan Yu
authored andcommitted
Update router debugging instructions
nsenter will only handle namespacing, however processes may have an incorrect SELinux context and will not respect cgroups. It's therefore recommended to use `docker exec` or `runc exec` instead.
1 parent 3741919 commit 7084d5e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/routing.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,15 @@ The router is an [HAProxy](http://www.haproxy.org/) container that is run via a
340340
provides a watch on `routes` and `endpoints`. The watch funnels down to the configuration files for the [HAProxy](http://www.haproxy.org/)
341341
plugin which can be found in `plugins/router/haproxy/haproxy.go`. The router is then issued a reload command.
342342

343-
When debugging the router it is sometimes useful to inspect these files. To do this you must enter the namespace of the
344-
running container by getting the pid and using nsenter
345-
`nsenter -m -u -n -i -p -t $(docker inspect --format "{{.State.Pid }}" <container-id>)`
343+
When debugging the router it is sometimes useful to inspect these files. For example:
344+
345+
```
346+
$ oc get pods -n default
347+
NAME READY STATUS RESTARTS AGE
348+
router-1-2sqao 1/1 Running 0 1m
349+
$ oc rsh -n default router-1-2sqao
350+
```
351+
346352
Listed below are the files used for configuration.
347353

348354
ConfigTemplate = "/var/lib/haproxy/conf/haproxy_template.conf"

0 commit comments

Comments
 (0)