Skip to content

Instantly share code, notes, and snippets.

@jeesmon
Created February 28, 2022 15:02
Show Gist options
  • Save jeesmon/75eb4b5e31130b105d35add329a861e6 to your computer and use it in GitHub Desktop.
Save jeesmon/75eb4b5e31130b105d35add329a861e6 to your computer and use it in GitHub Desktop.

Do you know that with proper admin permissions, you can connect and debug cluster nodes in OCP (even when ssh is disabled in ROKS on Satellite)?

In OCP Web Console:

Navigate to Compute -> Nodes -> Click on a Node Name -> Terminal

On command line:

# find node names
oc get nodes
# connect to a node
oc debug node/<node_name>

More details here: https://www.redhat.com/sysadmin/how-oc-debug-works

More advanced debugging steps explained here: https://community.ibm.com/community/user/wasdevops/blogs/kevin-grigorenko1/2021/02/17/app-platform-swat-field-lessons-3-containerdebug

Key is you can use your own docker image with oc debug if default one is not sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment