Skip to content

Access Kubernetes pod information across multiple contexts

License

Notifications You must be signed in to change notification settings

eliasbokreta/multik8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

multik8s

A tool to access pod information across multiple Kubernetes contexts at once.

CI workflow

Table of Contents
  1. About The Project
  2. Usage
  3. Setup

About The Project

multik8s is a tool to access pod information across multiple Kubernetes contexts at once.
It allows to tail logs from several pods in several contexts and also to list pods.

Usage

Tail logs from pods :

multik8s get logs [-n namespace] [-p podName] [--follow] [--tail nbr]

-n, --namespace string   Kubernetes namespace (should be the exact name) (default "default")
-p, --podname string     Kubernetes pod name (works as a wildcard)
-f, --follow             Choose whether or not to follow log stream
-t, --tail int           The number of lines from the end of the logs to show (default 5)

List pods :

multik8s get pods [-n namespace] [-p podName]

-n, --namespace string   Kubernetes namespace (should be the exact name) (default "default")
-p, --podname string     Kubernetes pod name (works as a wildcard)

Setup

  • Build locally :

make build
  • Install the latest version :

    • Download the latest tar released from Github
    • Extract the archive
    • Move the binary to the location of your choice
  • Update the binary to the latest version :

multik8s update