Skip to content

kallakata/kubernetes_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes parser

A simple parser to list nodes, pods, namespaces and metadata from a desired context, along with chosen sub-metadata in a cli-like manner.

Inspired by kubectl, serves for internal purposes and experiments.

Please check Makefile for additional options. Schema defined in Kubernetes API docs (V1Pod and V1Node). Nodes-cli parser can be used both for nodepools and nodes, depending on the command.

Usage

Manual

$ pip install -r requirements.txt $ chmod +x kubernetes_parser_nodes.py kubernetes_parser_pods.py kubernetes_parser_nodepools.py $ ./[PARSER] [COMMAND] [ARGUMENTS] $ ./[PARSER] --help

Run pods CLI and install dependencies

$ make install-pods $ make setup-pods $ pods [ARGUMENTS] --help

Run nodes CLI and install dependencies

$ make install-nodes $ make setup-nodes $ nodes [COMMANDS] [ARGUMENTS] --help

Run nodepools CLI and install dependencies

$ make install-nodepools $ make setup-nodepools $ nodepools [COMMANDS] [ARGUMENTS] --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors