Skip to content

Instantly share code, notes, and snippets.

@alexlopes
Created June 10, 2021 12:20

Revisions

  1. alexlopes created this gist Jun 10, 2021.
    6 changes: 6 additions & 0 deletions k8s_tricks.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Get Pods by Owner name


    ```sh
    kubectl get pods -o jsonpath='{range .items[?(@.metadata.ownerReferences[0].name == "owner name")]}{.metadata.name}{"\n"}{end}'
    ```