{"id":22505897,"url":"https://github.com/ron-chang/kubes","last_synced_at":"2025-03-27T23:28:35.680Z","repository":{"id":62574773,"uuid":"367012923","full_name":"Ron-Chang/kubes","owner":"Ron-Chang","description":"To take care kubectl command","archived":false,"fork":false,"pushed_at":"2021-12-24T13:56:47.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-06T08:12:29.090Z","etag":null,"topics":["deployment-automation","k8s","kubectl","kubectl-command","kubes","pods","python"],"latest_commit_sha":null,"homepage":"","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/Ron-Chang.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}},"created_at":"2021-05-13T10:25:08.000Z","updated_at":"2021-12-24T13:56:50.000Z","dependencies_parsed_at":"2022-11-03T18:49:48.294Z","dependency_job_id":null,"html_url":"https://github.com/Ron-Chang/kubes","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2Fkubes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2Fkubes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2Fkubes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ron-Chang%2Fkubes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ron-Chang","download_url":"https://codeload.github.com/Ron-Chang/kubes/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245942081,"owners_count":20697690,"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":["deployment-automation","k8s","kubectl","kubectl-command","kubes","pods","python"],"created_at":"2024-12-07T00:37:00.929Z","updated_at":"2025-03-27T23:28:35.661Z","avatar_url":"https://github.com/Ron-Chang.png","language":"Python","funding_links":["https://paypal.me/RonDevStudio?locale.x=zh_TW","https://www.buymeacoffee.com/ronchang"],"categories":[],"sub_categories":[],"readme":"# Kubes\n\n## Purposes\n- `kubes ls` to list pods(default), ns, secrets etc.\n- `kubes cx` to list all namespaces or switch one.\n- `kubes log` to show logs by a number of the tail or streaming with `--follow`.\n- `kubes cp` to copy a file or directory between pod and local.\n- `kubes run` to interact with a pod.\n- The program is using __stdout__ and __stderr__ which means it's able to support the next level deployment scripting.\n\n## Installation\n```bash\npip install kubes\n```\n\n## Instruction\n### - `kubes ls \u003csubjects\u003e`\nThis command render the form with color, and track `STATUS` column. If the status is not in [`Running`, `Active`], it will be marked by red.\n![kube_ls_demo_img](https://github.com/Ron-Chang/kubes/blob/develop/img/demo.png)\n\n\n\n## Usage\n```\nkubes.py [-h] {ls,cx,log,image,cp,run,describe} ...\n\noptional arguments:\n  -h, --help            show this help message and exit\n\nsubcommands:\n  List Subjects\n\n  {ls,cx,log,image,cp,run,describe}\n    ls                  List Subject [default value: pods]\n    cx                  List namespaces or switch the context to one of them\n    log                 Show logs\n    image               Get image info\n    cp                  Download file or directory\n    run                 Execute pod with command default: bash\n    describe            Describe Subject [default value: pods]\n```\n\n## Update Logs\n|#|      date|version|\n|-|----------|-------|\n|7|2021/12/24| v1.2.0|\n|6|2021/11/26| v1.1.0|\n|5|2021/05/17| v1.0.1|\n|4|2021/05/16| v1.0.0|\n|3|2021/05/15| v0.1.0|\n|2|2021/05/13| v0.0.6|\n|1|2021/05/13| v0.0.1|\n\n## 1.2.0\n- Add shortcut for get image info\n- Add describe subjects\n- Update `ls` method\n    + format `sevices` for ingress purpose\n    + format Non-sevices as json if pods was specified\n\n## 1.1.0\n- Use full pod name to check pods instead of name without hash\n\n## 1.0.1\n- Removed detect command timeout in 10 seconds to avoid copy files overtime\n\n## 1.0.0\n- First release version\n- Update README.md\n\n## 0.1.0\n- Restructure arguments by group\n\n## 0.0.6\n- Add streaming arguments and add tail numbers for pods logs\n- Dye the pods status if it shows not Running\n\nIf you like my work, please consider buying me a coffee or [PayPal](https://paypal.me/RonDevStudio?locale.x=zh_TW)\nThanks for your support! Cheers! 🎉\n\u003ca href=\"https://www.buymeacoffee.com/ronchang\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" align=\"right\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fron-chang%2Fkubes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fron-chang%2Fkubes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fron-chang%2Fkubes/lists"}