{"id":17002135,"url":"https://github.com/bpetit/kubectl-it","last_synced_at":"2026-04-28T10:36:07.852Z","repository":{"id":71419763,"uuid":"238222950","full_name":"bpetit/kubectl-it","owner":"bpetit","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-05T09:03:23.000Z","size":31,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-27T22:54:55.210Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/bpetit.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":"2020-02-04T14:15:55.000Z","updated_at":"2020-05-05T09:03:25.000Z","dependencies_parsed_at":"2023-06-03T20:30:31.233Z","dependency_job_id":null,"html_url":"https://github.com/bpetit/kubectl-it","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bpetit/kubectl-it","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpetit%2Fkubectl-it","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpetit%2Fkubectl-it/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpetit%2Fkubectl-it/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpetit%2Fkubectl-it/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bpetit","download_url":"https://codeload.github.com/bpetit/kubectl-it/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bpetit%2Fkubectl-it/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32377587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T09:24:15.638Z","status":"ssl_error","status_checked_at":"2026-04-28T09:24:15.071Z","response_time":56,"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":[],"created_at":"2024-10-14T04:27:08.080Z","updated_at":"2026-04-28T10:36:07.831Z","avatar_url":"https://github.com/bpetit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kubectl-it\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-0.1a-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/bpetit_\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Twitter: bpetit_\" src=\"https://img.shields.io/twitter/follow/bpetit_.svg?style=social\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n**Warning: this is work in progress**\n\nkubectl it is a kubectl plugin to make kubernetes clusters fleet management easier.\n\n## Usage\n\n**kubectl it** manages kubernetes contexts for you, as distinct kubeconfig files (let's forget this **gigantic** and unmanageable ~/.kube/.config).\n\nEach time you add add a context, from either an original kubeconfig file:\n\n```sh\nkubectl it add where/to/store/in/the/configuration/tree kubeconfig --path path/to/original/kubeconfig --original-name name-in-original-kubeconfig --name name-in-the-config-tree\n```\n\nor generating it with AWS EKS IAM authenticator:\n\n```sh\nkubectl it add where/to/store/in/the/configuration/tree awseks --name mycluster --profile my-iam-profile --region eu-west-2 --cluster-name mycluster --name name-in-the-config-tree\n```\n\nit will store those new kubconfig files in a configuration tree as the one below:\n\n```\n/home/bpetit/.kube/kubectlit\n└── configs\n    ├── foo\n    │   ├── bar\n    │   │   └── monitoring-clusters\n    │   │       └── monitoring-clu01_kube.config\n    │   └── foo\n    │       └── bar\n    │           └── monitoring-clusters\n    │               └── monitoring-clu02_kube.config\n    ├── production\n    │   ├── monitoring\n    │   │   └── monitoring-clusters\n    │   │       └── monitoring-clu02_kube.config\n    │   └── webapps\n    │       └── app01\n    │           ├── admin-on-app01_kube.config\n    │           └── unprivileged-on-app01_kube.config\n    ├── staging\n    │   └── webapps\n    │       └── app01\n    │           └── admin-on-app01_kube.config\n    └── where\n        └── to\n            └── store\n                └── in\n                    └── the\n                        └── configuration\n                            └── tree\n                                └── mycluster_kube.config\n```\n\nThen you can select which context or multiple contexts and run arbitrary actions on it (handy for cluster components upgrades for example).\n\nTo list what's inside a category/folder:\n\n```sh\n$ kubectl it ls production/webapps/app01\napp01/\n    admin-on-app01_kube.config\n    unprivileged-on-app01_kube.config\n```\n\nTo run an action on those contexts (be careful with what you do):\n\n```sh\nkubectl it run production/webapps/app01 kubectl get po -l app=myapp\n```\n\nor:\n\n```sh\nkubectl it run production/webapps/app01 ./upgrade.sh\n```\n\n## Run tests\n\nTo validate that everything is working, you can list all kubeconfig files stores in the tree:\n\n```sh\nkubectl it ls /\n```\n\n## Author\n\n👤 **Benoit Petit**\n\n* Website: https://bpetit.nce.re\n\n## 🤝 Contributing\n\nContributions, issues and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/bpetit/kubectl-it/issues).\n\n## Show your support\n\nGive a ⭐️ if this project helped you!\n\n***\n_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpetit%2Fkubectl-it","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbpetit%2Fkubectl-it","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbpetit%2Fkubectl-it/lists"}