Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Listing available pods

shell command

kubectl get pods


To view the contents of a pod

shell command

kubectl describe pods

This command will display what containers are in a pod and what image was used to create the container


Retrieve a POD name

Linux shell command

export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')

Windows shell command

export POD_NAME=$(kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}')


  • No labels