Code Monkey home page Code Monkey logo

kubes's Introduction

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 between pod and local.
  • 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.py [-h] {ls,cx,log,image,cp,run,describe} ...

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

subcommands:
  List Subjects

  {ls,cx,log,image,cp,run,describe}
    ls                  List Subject [default value: pods]
    cx                  List namespaces or switch the context to one of them
    log                 Show logs
    image               Get image info
    cp                  Download file or directory
    run                 Execute pod with command default: bash
    describe            Describe Subject [default value: pods]

Update Logs

# date version
7 2021/12/24 v1.2.0
6 2021/11/26 v1.1.0
5 2021/05/17 v1.0.1
4 2021/05/16 v1.0.0
3 2021/05/15 v0.1.0
2 2021/05/13 v0.0.6
1 2021/05/13 v0.0.1

1.2.0

  • Add shortcut for get image info
  • Add describe subjects
  • Update ls method
    • format sevices for ingress purpose
    • format Non-sevices as json if pods was specified

1.1.0

  • Use full pod name to check pods instead of name without hash

1.0.1

  • Removed detect command timeout in 10 seconds to avoid copy files overtime

1.0.0

  • First release version
  • Update README.md

0.1.0

  • Restructure arguments by group

0.0.6

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

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

kubes's People

Contributors

ron-chang avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.