Skip to main content

To take care kubectl command

Project description

Kubes

Purposes

  • kubes ls to list pods(default), ns, secrets etc.
  • kubes cx to list all namespaces or switch one.
  • kubes log to show logs by a number of the tail or streaming with --follow.
  • kubes cp to copy a file or directory from pod.
  • kubes run to interact with a pod.
  • The program is using stdout and stderr which means it's able to support the next level deployment scripting.

Installation

pip install kubes

Instruction

- kubes ls <subjects>

This command render the form with color, and track STATUS column. If the status is not in [Running, Active], it will be marked by red. kube_ls_demo_img

Usage

kubes [-h] {ls,cx,log,cp,run} ...

optional arguments:
  -h, --help          show this help message and exit

subcommands:
  List Subjects

  {ls,cx,log,cp,run}
    ls                List Subject [default value: pods]
    cx                List namespaces or switch the context to one of them
    log               Show logs
    cp                Download file or directory
    run               Download file/folder
usage: kubes.py [-h] {ls,cx,log,cp,run} ...

optional arguments:
  -h, --help          show this help message and exit

subcommands:
  List Subjects

  {ls,cx,log,cp,run}
    ls                List Subject [default value: pods]
    cx                List namespaces or switch the context to one of them
    log               Show logs
    cp                Download file or directory
    run               Download file/folder

Update Logs

# date version
1 2021/05/13 v0.0.1
2 2021/05/13 v0.0.6
3 2021/05/15 v0.1.0

0.0.6

  • Add streaming arguments and add tail numbers for pods logs
  • Dye the pods status if it shows not Running.

0.1.0

  • Restructure arguments by group

If you like my work, please consider buying me a coffee or PayPal Thanks for your support! Cheers! 🎉 Buy Me A Coffee

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kubes-1.0.0.tar.gz (5.7 kB view hashes)

Uploaded Source

Built Distribution

kubes-1.0.0-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page