Skip to content

Instantly share code, notes, and snippets.

View kadambkaluskar's full-sized avatar

Kadamb Kaluskar kadambkaluskar

View GitHub Profile
  • List all pods with their priority-class:
    kubectl get pods --all-namespaces -o custom-columns=NAME:.metadata.name,PRIORITY:.spec.priorityClassName,VALUE:.spec.priority

  • List all pods with a specific priority-class:
    kubectl get pods -A -o=jsonpath='{.items[?(@.spec.priorityClassName=="system-node-critical")].metadata.name}{"\n"}'

  • List all pods running on a node:
    kubectl get pods --all-namespaces -o wide --field-selector spec.nodeName=

Complete documentation is available at https://traefik.io
Usage: traefik [flags] <command> [<arguments>]
Use "traefik <command> --help" for help on any command.
Commands: