Skip to content

Instantly share code, notes, and snippets.

@jefflaplante
Last active July 3, 2017 19:00
Show Gist options
  • Select an option

  • Save jefflaplante/e85db3acffbefa46b86ab6a593ac072b to your computer and use it in GitHub Desktop.

Select an option

Save jefflaplante/e85db3acffbefa46b86ab6a593ac072b to your computer and use it in GitHub Desktop.

Revisions

  1. jefflaplante revised this gist Jul 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    kubectl get pods --all-namespaces -o go-template='{{ range .items }}{{- printf "%-10s\t" .metadata.namespace }}{{- printf "%-35s\t" .metadata.name }}{{- printf "%-20v\t" .status.startTime }}{{- range .spec.containers }}{{- printf "%s " .image }}{{- end }}{{- printf "\n" }}{{- end }}'
    kubectl get pods --all-namespaces -o go-template='{{ range .items }}{{- printf "%-5s\t%-45s\t%-20v\t" .metadata.namespace .metadata.name .status.startTime}}{{- range .spec.containers }}{{- printf "%s " .image }}{{- end }}{{- printf "\n" }}{{- end }}'
  2. jefflaplante revised this gist Jul 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    kubectl get pods -n dev1 -o go-template='{{ range .items }}{{- printf "%-10s\t" .metadata.namespace }}{{- printf "%-35s\t" .metadata.name }}{{- printf "%-20v\t" .status.startTime }}{{- range .spec.containers }}{{- printf "%s " .image }}{{- end }}{{- printf "\n" }}{{- end }}'
    kubectl get pods --all-namespaces -o go-template='{{ range .items }}{{- printf "%-10s\t" .metadata.namespace }}{{- printf "%-35s\t" .metadata.name }}{{- printf "%-20v\t" .status.startTime }}{{- range .spec.containers }}{{- printf "%s " .image }}{{- end }}{{- printf "\n" }}{{- end }}'
  3. jefflaplante created this gist Jul 3, 2017.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    kubectl get pods -n dev1 -o go-template='{{ range .items }}{{- printf "%-10s\t" .metadata.namespace }}{{- printf "%-35s\t" .metadata.name }}{{- printf "%-20v\t" .status.startTime }}{{- range .spec.containers }}{{- printf "%s " .image }}{{- end }}{{- printf "\n" }}{{- end }}'