{"id":19407614,"url":"https://github.com/tool3/kpods","last_synced_at":"2025-02-25T01:43:49.602Z","repository":{"id":36846412,"uuid":"230630859","full_name":"tool3/kpods","owner":"tool3","description":"𝌤 kubernetes pod management cli","archived":false,"fork":false,"pushed_at":"2022-09-06T06:07:00.000Z","size":1601,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T11:10:06.517Z","etag":null,"topics":["cli","javascript","kubernetes","nodejs","npm"],"latest_commit_sha":null,"homepage":"https://tool3.github.io/kpods","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tool3.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}},"created_at":"2019-12-28T15:55:38.000Z","updated_at":"2022-02-15T07:40:21.000Z","dependencies_parsed_at":"2022-08-25T06:12:52.806Z","dependency_job_id":null,"html_url":"https://github.com/tool3/kpods","commit_stats":null,"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fkpods","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fkpods/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fkpods/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tool3%2Fkpods/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tool3","download_url":"https://codeload.github.com/tool3/kpods/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240587544,"owners_count":19825004,"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":["cli","javascript","kubernetes","nodejs","npm"],"created_at":"2024-11-10T12:03:12.449Z","updated_at":"2025-02-25T01:43:49.582Z","avatar_url":"https://github.com/tool3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```bash\n                                            _              _      \n                                           /\\_\\           /\\ \\    \n                                          / / /  _       /  \\ \\   \n                                         / / /  /\\_\\    / /\\ \\ \\  \n                                        / / /__/ / /   / / /\\ \\_\\ \n                                       / /\\_____/ /   / / /_/ / / \n                                      / /\\_______/   / / /__\\/ /  \n                                     / / /\\ \\ \\     / / /_____/   \n                                    / / /  \\ \\ \\   / / /          \n                                   / / /    \\ \\ \\ / / /           \n                                   \\/_/      \\_\\_\\\\/_/\n                                   \n                                            k8s pods cli                   \n```\n[![Build Status](https://travis-ci.org/tool3/kpods.svg?branch=master)](https://travis-ci.org/tool3/kpods)   [![npm](https://img.shields.io/npm/dm/@tool3/kpods)](https://www.npmjs.com/package/@tool3/kpods)   \nkpods is a small, frictionless kubernetes pod management utility that works with kubernetes-dashboard APIs.   \nno kubeconfig, minimal setup.\n\n# install\n`npm install -g @tool3/kpods`\n\nonce installed, it will be available globally as `kp` and `kpods`.\n\n# config\n`kp` expects you to have the following environment variables available:   \n- `KP_URL` - the k8s dashboard URL.   \n- `KP_TOKEN` - authorization bearer token (without Bearer).  \n- `KP_ENV` - the default namespace.\n  \nYou can also run with `--url, -u | --env, -e | --token, -t` and provide overrides on demand.\n\n# usage\n`kp` or `kp --help` to see available commands and options.\n\n# multi cluster \ngiven you have multiple clusters and hence multiple k8s dashboards, you can store env variables in files (`.properties` for example) and export them based on the current namespace you are working with, for example:   \n#### KP_DEV.properties\n```bash\nexport KP_URL=\"your k8s dashboard url\"\nexport KP_ENV=\"dev\" #assuming your namespace in dev cluster is also dev\nexport KP_TOKEN=\"your bearer token (without Bearer)\"\n```\n#### KP_PROD.properties\n```bash\nexport KP_URL=\"your k8s dashboard url\"\nexport KP_ENV=\"prod\" #assuming your namespace in prod cluster is also prod\nexport KP_TOKEN=\"your bearer token (without Bearer)\"\n```\n#### usage example\nusing one of the `kp` configs (dev in this example), is as easy as:   \n```bash\nsource KP_DEV.properties\n```\nor better yet:\n```bash\n. KP_DEV.properties\n```\n\nso essentially keeping 2 terminal tabs each for it's own `kp` config, or update them on the fly!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftool3%2Fkpods","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftool3%2Fkpods","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftool3%2Fkpods/lists"}