RSSAmplifier

Harry Suryapambagya · Jun 7, 2022

Retrieve full name Kubernetes Pods

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Ever try to retrieve the full name of your Kubernetes Pods? Let's say your pods are running NGINX. Use a JSON query option like this. $ kubectl get pods -l app=nginx -o jsonpath="{.items[0].metadata.name}{'\n'} nginx-85b98978db-kll6q

Read on harry.id

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.