skip to content
Alvin Lucillo

Get node IP

/ 1 min read

If you’re ssh’d into a node vm, you can use the following commands to get that node’s IP if kubectl is not accessible:

hostname -I
getent hosts hostname # e.g., getent hosts controlplane