Skip to content

Instantly share code, notes, and snippets.

@41tair
Last active August 2, 2023 10:35
Show Gist options
  • Save 41tair/524b5a49c6cb66580c66399db45523d3 to your computer and use it in GitHub Desktop.
Save 41tair/524b5a49c6cb66580c66399db45523d3 to your computer and use it in GitHub Desktop.
get pod hostname by pid
xargs -0 -L1 -a /proc/PID/environ | grep HOSTNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment