@tool3/kpods

1.0.56 • Public • Published
                                            _              _      
                                           /\_\           /\ \    
                                          / / /  _       /  \ \   
                                         / / /  /\_\    / /\ \ \  
                                        / / /__/ / /   / / /\ \_\ 
                                       / /\_____/ /   / / /_/ / / 
                                      / /\_______/   / / /__\/ /  
                                     / / /\ \ \     / / /_____/   
                                    / / /  \ \ \   / / /          
                                   / / /    \ \ \ / / /           
                                   \/_/      \_\_\\/_/
                                   
                                            k8s pods cli                   

Build Status npm
kpods is a small, frictionless kubernetes pod management utility that works with kubernetes-dashboard APIs.
no kubeconfig, minimal setup.

install

npm install -g @tool3/kpods

once installed, it will be available globally as kp and kpods.

config

kp expects you to have the following environment variables available:

  • KP_URL - the k8s dashboard URL.
  • KP_TOKEN - authorization bearer token (without Bearer).
  • KP_ENV - the default namespace.

You can also run with --url, -u | --env, -e | --token, -t and provide overrides on demand.

usage

kp or kp --help to see available commands and options.

multi cluster

given 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:

KP_DEV.properties

export KP_URL="your k8s dashboard url"
export KP_ENV="dev" #assuming your namespace in dev cluster is also dev
export KP_TOKEN="your bearer token (without Bearer)"

KP_PROD.properties

export KP_URL="your k8s dashboard url"
export KP_ENV="prod" #assuming your namespace in prod cluster is also prod
export KP_TOKEN="your bearer token (without Bearer)"

usage example

using one of the kp configs (dev in this example), is as easy as:

source KP_DEV.properties

or better yet:

. KP_DEV.properties

so essentially keeping 2 terminal tabs each for it's own kp config, or update them on the fly!

Readme

Keywords

Package Sidebar

Install

npm i @tool3/kpods

Weekly Downloads

1

Version

1.0.56

License

MIT

Unpacked Size

466 kB

Total Files

26

Last publish

Collaborators

  • tool3