Skip to content

Instantly share code, notes, and snippets.

@zonggen
Created February 18, 2020 21:54
Show Gist options
  • Save zonggen/b6841a1d995d84589d18bf16b918b105 to your computer and use it in GitHub Desktop.
Save zonggen/b6841a1d995d84589d18bf16b918b105 to your computer and use it in GitHub Desktop.
Debug in master node using crc
$ crc start
$ crc login
$ oc get nodes
NAME                 STATUS   ROLES           AGE   VERSION
crc-2n9vw-master-0   Ready    master,worker   88d   v1.14.6+6ac6aa4b0

$ oc debug node/crc-2n9vw-master-0
Starting pod/crc-2n9vw-master-0-debug ...
To use host binaries, run `chroot /host`
Pod IP: 192.168.130.11
If you don't see a command prompt, try pressing enter.
sh-4.4# chroot /host
sh-4.4# 

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