Kubernetes provides a wide variety of methods for formatting output
The custom columns output lets you print multiple values defined using jsonpath expressions in a tabular output
While outputting scalar values is reasonably intuitive, I couldn’t see in the docs where is says what the format for defining custom-columns is.
Read more ...kubectl is the kubernetes swiss army knife - as well as being able to manipulate kubernetes it gives access to loads of data
But to make use of that data we need to format it - and one of the more powerful ways of doing this is using gotemplates
the help page just says
–template=’':
Template string or path to template file to use when -o=go-template, -o=go-template-file.
The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
which isn’t on it’s own terribly helpful
Read more ...