With Red Hat OpenShift, here's how to view logs of a pod in a different project than the one currently active:
oc logs -n <project> <pod>
Option as documented but obscure and hard to follow because the option is namespace
but oc
always references them as projects
everywhere else:
$ oc options
[...]
-n, --namespace='': If present, the namespace scope for this CLI request
Searches that I made and failed to find this information.
- oc logs pod not in project
- oc logs pod across projects
- oc logs pod multiple projects
- openshift specify project
- oc specify project in command
- openshift specify multiple project
- oc specify project in environment
- openshift kubectl across projects
- openshift activate multiple projects
- openshift work on multiple projects
- openshift oc logs across multiple project