Skip to content

Instantly share code, notes, and snippets.

@marfenij
Created January 10, 2020 16:38
Show Gist options
  • Save marfenij/cf663876e270584065846810355e3938 to your computer and use it in GitHub Desktop.
Save marfenij/cf663876e270584065846810355e3938 to your computer and use it in GitHub Desktop.
kubectl get pods -n kube-system -l k8s-app=prometheus-to-sd -o=jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.spec.containers[*].image}{"\n"}{end}'
https://kubernetes.io/docs/reference/kubectl/jsonpath/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment