{"id":28925892,"url":"https://github.com/rvojcik/kube-shell","last_synced_at":"2026-04-18T00:03:32.376Z","repository":{"id":141898170,"uuid":"371432839","full_name":"rvojcik/kube-shell","owner":"rvojcik","description":"Shell function for Kubernetes clusters. Fast way to work with kubernetes contexts, namespaces and multiple contexts in many shells. Work on multiple clusters at once","archived":false,"fork":false,"pushed_at":"2024-08-12T08:48:57.000Z","size":14354,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T23:00:01.641Z","etag":null,"topics":["bash","k8s","kubectl","kubernetes","shell"],"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/rvojcik.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-05-27T16:09:53.000Z","updated_at":"2024-08-12T08:49:00.000Z","dependencies_parsed_at":"2024-08-13T08:46:20.816Z","dependency_job_id":null,"html_url":"https://github.com/rvojcik/kube-shell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rvojcik/kube-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvojcik%2Fkube-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvojcik%2Fkube-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvojcik%2Fkube-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvojcik%2Fkube-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rvojcik","download_url":"https://codeload.github.com/rvojcik/kube-shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rvojcik%2Fkube-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31950891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T17:29:20.459Z","status":"ssl_error","status_checked_at":"2026-04-17T17:28:47.801Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bash","k8s","kubectl","kubernetes","shell"],"created_at":"2025-06-22T11:10:58.739Z","updated_at":"2026-04-18T00:03:32.350Z","avatar_url":"https://github.com/rvojcik.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kube-shell\n\nKubernetes shell bash functions to help working with multiple kubernetes clusters.\n\n- switch between namespaces easily\n- switch easily between clusters\n- fork kubeconfig to work with multiple clusters / namespaces in separate shells\n- send commands to multiple contexts at once with `krun`\n\n## Demo\n\n### Working on multiple contexts at once\n\nGreat for cluster operators, check your deployments across infrastructure or deploy changes to multiple contexts.\n\n![demo4](./img/multiple-contexts.gif \"Demo working on multiple contexts\")\n\n### Forking Kube Config in separate shell\n\nSometimes it's handy to have two contexts in two shells\n\n![demo3](./img/forking.gif \"Demo Forking Kube Config\")\n\nThere are also [Demos for basic functions](https://github.com/rvojcik/kube-shell/tree/main/img) like switching context, switching between last contexts and namespaces. \n\n## Installation\n\nAdd sourcing to your `.bash_rc` file like\n\n```\nsource /path/to/kubeshell.sh\n```\n\nor directly from shell\n\n```\nbash# source ./kubeshell.sh  \n```\n\n## Usage\n\n- `kcon`, change context, `--` or `-` for switching between last contexts\n- `kname`, change namespace, `--` or `-` for switching between last namespaces\n- `kfork`, fork kubeconfig to separate instance, can operate on different cluster in every shell, `del` for destroying fork and returning to main kubeconfig file\n- `krun`, send commands to multiple contexts at once\n\n### krun\n\nFor list contexts where commands will be send\n```\nkrun\n```\n\nAdd context to krun\n```\nkrun + context_name\n```\n\nRemove context from krun\n```\nkrun - context_name\n```\n\nYou can also add or remove all contexts with `ALL`\n```\nkrun + ALL\n```\n\nGet kube-system pods from contexts\n```\nkrun get pods -n kube-sytem\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvojcik%2Fkube-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frvojcik%2Fkube-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frvojcik%2Fkube-shell/lists"}