Skip to content

is it possible to use "kubectl debug node/nodename" instead of ssh ? #121

@schabrolles

Description

@schabrolles

In some cluster we don't have the sshkey to connect to the node.

When you are cluster-admin the proper way to connect to the cluster is: "kubectl debug node/"
then use "chroot /host" to have access to to the node / Filesystem.

You can run directly command with:

oc debug node/"${1}" -- chroot /host sh -c <command>

I think this could be a very usefull

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions