view bin/k8s-pod-names.sh @ 837:5ba219864529

add example program
author Jeff Hammel <k0scist@gmail.com>
date Mon, 27 Mar 2017 14:05:29 -0700
parents d265e49b965e
children
line wrap: on
line source

#!/bin/bash

kubectl get pods -o go-template --template '{{range .items}}{{.metadata.name}}{{"\n"}}{{end}}'