$ oc debug node/compute-0 Starting pod/compute-0-debug ... To use host binaries, run `chroot /host`
Pod IP: 10.0.97.4 If you don't see a command prompt, try pressing enter. sh-4.2# chroot /host sh-4.4# systemctl list-units --type=service --state=running
UNIT LOAD ACTIVE SUB DESCRIPTION auditd.service loaded active running Security Auditing Service chronyd.service loaded active running NTP client/server crio.service loaded active running Open Container Initiative Daemon dbus.service loaded active running D-Bus System Message Bus [email protected] loaded active running Getty on tty1 irqbalance.service loaded active running irqbalance daemon kubelet.service loaded active running Kubernetes Kubelet NetworkManager.service loaded active running Network Manager polkit.service loaded active running Authorization Manager rpc-statd.service loaded active running NFS status monitor for NFSv2/3 locking. rpcbind.service loaded active running RPC Bind sshd.service loaded active running OpenSSH server daemon sssd.service loaded active running System Security Services Daemon systemd-journald.service loaded active running Journal Service systemd-logind.service loaded active running Login Service systemd-udevd.service loaded active running udev Kernel Device Manager vgauthd.service loaded active running VGAuth Service for open-vm-tools vmtoolsd.service loaded active running Service for virtual machines hosted on VMware
LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type.
18 loaded units listed. Pass --all to see loaded but inactive units, too. To show all installed unit files use 'systemctl list-unit-files'.
NAME READY STATUS RESTARTS AGE welcome-1-deploy 0/1 Completed 0 1m welcome-1-hh7h8 1/1 Running 0 0s
$ oc get dc NAME REVISION DESIRED CURRNET TRIGGERED BY welcome 1 1 1 config,image(welcome:latest)
# Debug a pod $ oc debug pod/welcome-1-hh7h8
# See the pod that would be created to debug $ oc debug pod/welcome-1-hh7h8 -o yaml
# Debug a currently running deployment by creating a new pod $ oc debug dc/welcome $ oc debug dc/welcome --as-root $ oc debug dc/welcome --as-user=10000