Snippet.
bash6 lines
H A R S H H A A
Get pod IPs by label across all namespaces with kubectl JSONPath
Custom-columns is fine, but JSONPath gives you raw output you can pipe straight into other tooling.
Source.
Zero-friction retrieval.
$ curl -fsSL https://blog.harshhaareddy.com/raw/xx3ant2tzq5lut70fb0787pv | bashPipes the raw source straight into your shell. Review the raw output first if you are cautious.