{"id":19029773,"url":"https://github.com/ahmetb/kubectl-pods_on","last_synced_at":"2025-04-06T06:08:16.837Z","repository":{"id":220741446,"uuid":"752473563","full_name":"ahmetb/kubectl-pods_on","owner":"ahmetb","description":"kubectl plugin to query Pods by Node names or selectors","archived":false,"fork":false,"pushed_at":"2025-03-10T19:22:04.000Z","size":46,"stargazers_count":123,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-30T05:06:25.302Z","etag":null,"topics":["kubectl","kubectl-plugin","kubectl-plugins"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmetb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-04T00:01:22.000Z","updated_at":"2025-03-19T12:22:08.000Z","dependencies_parsed_at":"2024-02-09T19:28:31.554Z","dependency_job_id":"3f6007ad-92af-415b-a063-a422c979b685","html_url":"https://github.com/ahmetb/kubectl-pods_on","commit_stats":null,"previous_names":["ahmetb/kubectl-pods_on"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetb%2Fkubectl-pods_on","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetb%2Fkubectl-pods_on/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetb%2Fkubectl-pods_on/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmetb%2Fkubectl-pods_on/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmetb","download_url":"https://codeload.github.com/ahmetb/kubectl-pods_on/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247441051,"owners_count":20939239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kubectl","kubectl-plugin","kubectl-plugins"],"created_at":"2024-11-08T21:15:15.594Z","updated_at":"2025-04-06T06:08:16.817Z","avatar_url":"https://github.com/ahmetb.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `kubectl pods-on`\n\nA kubectl plugin to query list of pods running on a Node (by name or Node label\nselector).\n\nIf you ever found yourself finding a list of Pods on a particular Node or a\nset of Nodes, you'll find this plugin useful.\n\n### Features\n\n- Query multiple Node names at the same time.\n- Specify Node selectors (instead of Node names) to query\n- Supports `-o/--output=json|yaml|wide|jsonpath|go-template|...` formats (just\n  like `kubectl`)\n- Performance optimizations like parallel queries.\n- Runs fast on large clusters, as it employs different query strategies based on\n  the cluster size.\n\n### Examples\n\n- List all pods running on a node (or more nodes):\n\n  ```sh\n  kubectl pods-on \u003cnode-name\u003e [\u003cnode-name\u003e...]\n  ```\n\n- List all pods running on nodes with a specific label:\n\n  ```sh\n  kubectl pods-on pool=general\n  ```\n\n- List all pods running on nodes that match a particular selector:\n\n  ```sh\n  kubectl pods-on \"topology.kubernetes.io/zone in (us-west-1a, us-west-1b)\"\n  ```\n\n- A combination of both syntaxes (the results of each selector will be OR'ed):\n\n  ```sh\n  kubectl pods-on \\\n    \"tier in (db, cache)\" \\\n    \"foo=bar\"\\\n    node1.example.com\n  ```\n\n### Installation\n\n#### Install using Krew\n\n1. Install [Krew](https://krew.sigs.k8s.io) using [its installation\n   guide](https://krew.sigs.k8s.io/docs/user-guide/setup/install/).\n\n1. Run `kubectl krew install pods-on`.\n\n1. `kubectl pods-on` is ready to use!\n\n#### Install using `go` (not recommended)\n\nIn this method, you will not receive any updates to the plugin unless you\nmanually run `go install` again.\n\n1. ```sh\n   go install github.com/ahmetb/kubectl-pods_on@latest\n   ```\n\n2. Add `$HOME/go/bin` to your `PATH`.\n\n3. Run `kubectl pods-on`!\n\n### License\n\nDistributed as-is under Apache 2.0. See [LICENSE](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetb%2Fkubectl-pods_on","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmetb%2Fkubectl-pods_on","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmetb%2Fkubectl-pods_on/lists"}