{"id":22495466,"url":"https://github.com/zmalik/multi-kubectl","last_synced_at":"2025-03-27T21:17:16.602Z","repository":{"id":152662448,"uuid":"316569913","full_name":"zmalik/multi-kubectl","owner":"zmalik","description":"kubectl to multiple clusters present in context","archived":false,"fork":false,"pushed_at":"2021-03-21T19:12:41.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T23:41:18.130Z","etag":null,"topics":["contexts","kubectl","kubernetes","multi","multi-cluster","multiple"],"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/zmalik.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":"2020-11-27T18:07:27.000Z","updated_at":"2023-10-23T15:01:30.000Z","dependencies_parsed_at":"2023-06-16T09:00:24.828Z","dependency_job_id":null,"html_url":"https://github.com/zmalik/multi-kubectl","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fmulti-kubectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fmulti-kubectl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fmulti-kubectl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmalik%2Fmulti-kubectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmalik","download_url":"https://codeload.github.com/zmalik/multi-kubectl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245924499,"owners_count":20694731,"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":["contexts","kubectl","kubernetes","multi","multi-cluster","multiple"],"created_at":"2024-12-06T19:28:55.386Z","updated_at":"2025-03-27T21:17:16.565Z","avatar_url":"https://github.com/zmalik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multi-kubectl\nkubectl to multiple clusters present in contexts\n\n\n### Installation:\nGet the latest release from the [releases page](https://github.com/zmalik/multi-kubectl/releases)\n\n### Usage:\nmulti-kubectl supports two flags\n- `--match-ctx` for any match\n- `--ctx` for the exact match \n\n\n```\nmulti-kubectl get ns --match-ctx prod \n```\nthis will run `kubectl get ns` against all contexts, which name contains the string `prod`\n\n\n```\nmulti-kubectl get ns --ctx kind-second --ctx=kind-kind\n```\n will get from namespaces using the contexts `kind-kind` and `kind-second` \n\n```\nmulti-kubectl get ns --ctx=my-context\n```\nwill get the namespaces using the context `my-context`\n\n## Requirements:\n\n- kubectl \n- configured KUBECONFIG\n\n### Examples:\n```\n❯ multi-kubectl get pods -A --match-ctx=kind\ncluster:kind-kind\nNAMESPACE            NAME                                         READY   STATUS    RESTARTS   AGE\nkube-system          coredns-f9fd979d6-lwglv                      1/1     Running   1          44h\nkube-system          coredns-f9fd979d6-tdqtf                      1/1     Running   0          44h\nkube-system          etcd-kind-control-plane                      1/1     Running   1          44h\nkube-system          kindnet-xdnmf                                1/1     Running   6          44h\nkube-system          kube-apiserver-kind-control-plane            1/1     Running   4          44h\nkube-system          kube-controller-manager-kind-control-plane   1/1     Running   31         44h\nkube-system          kube-proxy-xhqn8                             1/1     Running   0          44h\nkube-system          kube-scheduler-kind-control-plane            1/1     Running   28         44h\nlocal-path-storage   local-path-provisioner-78776bfc44-8hm86      1/1     Running   27         44h\ncluster:kind-second\nNAMESPACE            NAME                                           READY   STATUS    RESTARTS   AGE\nkube-system          coredns-f9fd979d6-5gdlk                        1/1     Running   0          44h\nkube-system          coredns-f9fd979d6-m4ffq                        1/1     Running   0          44h\nkube-system          etcd-second-control-plane                      1/1     Running   2          44h\nkube-system          kindnet-zkwqj                                  1/1     Running   8          44h\nkube-system          kube-apiserver-second-control-plane            1/1     Running   9          44h\nkube-system          kube-controller-manager-second-control-plane   1/1     Running   23         44h\nkube-system          kube-proxy-2v78d                               1/1     Running   0          44h\nkube-system          kube-scheduler-second-control-plane            1/1     Running   22         44h\nlocal-path-storage   local-path-provisioner-78776bfc44-bcpxz        1/1     Running   30         44h\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmalik%2Fmulti-kubectl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmalik%2Fmulti-kubectl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmalik%2Fmulti-kubectl/lists"}