{"id":18295929,"url":"https://github.com/petergrace/kubectl-everything","last_synced_at":"2025-04-09T08:42:02.546Z","repository":{"id":145479037,"uuid":"233877293","full_name":"PeterGrace/kubectl-everything","owner":"PeterGrace","description":"Various kubectl plugins to make life easier","archived":false,"fork":false,"pushed_at":"2021-02-08T15:59:19.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T00:33:46.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterGrace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-14T15:50:43.000Z","updated_at":"2024-04-10T20:57:19.000Z","dependencies_parsed_at":"2023-06-03T16:00:39.836Z","dependency_job_id":null,"html_url":"https://github.com/PeterGrace/kubectl-everything","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fkubectl-everything","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fkubectl-everything/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fkubectl-everything/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterGrace%2Fkubectl-everything/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterGrace","download_url":"https://codeload.github.com/PeterGrace/kubectl-everything/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248008348,"owners_count":21032553,"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":[],"created_at":"2024-11-05T14:38:51.692Z","updated_at":"2025-04-09T08:42:02.516Z","avatar_url":"https://github.com/PeterGrace.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-everything\nAre you frustrated by 'kubectl get all' not actually returning all?  Well, I was, and it turns out that the `get all` command is planned to be deprecated eventually.  My annoyance has manifest into a kubectl plugin called `kubectl everything`, which is a simple bash script that outputs *everything* in the current namespace, a specified namespace, or all namespaces.  The script here is accessible as a kubectl plugin if you store it in your path as an executable bash file called `kubectl-everything`.\n\n# kubectl-sadpods\nThis command will show you all pods that are not in Running or Completed status.\n\n# kubectl-sadreplicas\nThis command will show you any replicasets that don't have the same number of \"ready\" pods as they've requested.\n\n# kubectl-get_laq\nThis command will produce an Azure Log Analytics query suitable for finding container logs for a deployment or pod.\n\n# kubectl-get_pod_priority\nThis command produces a list of pods and what priorityclass they're operating under.\n\n# kubectl-get_psp\nThis command produces a list of pods and what Pod Security Policy they're operating under.\n\n## Prerequisites\n  * You'll need a recent kubectl binary.\n\n## Installation\n  1. Copy kubectl-\\* into your path.\n  1. Enjoy being able to find all the things in your namespaces.\n\n## Usage (everything)\n  * `kubectl everything` -- Show all resources that are in your current namespace, as well as cluster-wide resources.\n  * `kubectl everything -n foo` -- Show all resources in foo namespace, as well as cluster-wide resources.\n  * `kubectl everything -a` -- show all resources in the entire cluster\n## Usage (sadpods)\n  * `kubectl sadpods` -- Show all pods in this namespace which are not Running or Completed.\n  * `kubectl sadpods -n foo` -- Show all pods in specified namespace which are not Running or Completed.\n  * `kubectl sadpods -a` -- Show all pods in the whole cluster which are not Running or Completed.\n## Usage (sadreplicas)\n  * `kubectl sadreplicas` -- Show all replicasets in this namespace which do not have the same number of ready pods as requested.\n  * `kubectl sadreplicas -n foo` -- Show all replicasets in specified namespace which do not have the same number of ready pods as requested.\n  * `kubectl sadreplicas -a` -- Show all replicasets in the whole cluster which do not have the same number of ready pods as requested.\n## Usage (get-laq)\n  * `kubectl get-laq -p podname` -- Get a Log Analytics query for a particular pod id.  Can use -n to specify alternate namespace, or -a for all.\n  * `kubectl get-laq -d deployment` -- Get a Log Analytics query for all containers deployed to a deployment specification. -n and -a as above work as expected\n## Usage (get-pod-priority)\n  * `kubectl get-pod-priority` -- Show all pods in this namespace and what priorityClass they're running under.\n  * `kubectl get-pod-priority -n foo` -- Show all pods in specified namespace and what priorityClass they're running under.\n  * `kubectl get-pod-priority -a` -- Show all pods in the whole cluster and what priorityClass they're running under.\n## Usage (get-psp)\n  * `kubectl get-psp` -- Show all pods in this namespace and what Pod Security Policy applies to them.\n  * `kubectl get-psp -n foo` -- Show all pods in specified namespace and what Pod Security Policy applies to them.\n  * `kubectl get-psp -a` -- Show all pods in the whole cluster and what Pod Security Policy applies to them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetergrace%2Fkubectl-everything","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetergrace%2Fkubectl-everything","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetergrace%2Fkubectl-everything/lists"}