k8slog

command module
v0.0.0-...-1de04d0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 14 Imported by: 0

README

#k8slog

k8slog is a tool for aggregating the values we get when running kubectl get pod -A .

We have a very simple view, but it is just the beginning, we can extend it to different needs we have when we have several nodes and many services and pods in the Kubernetes cluster.

CONFIG

We have a config.yaml file, where we have the namespaces that we would like to present from the cluster.

$ cat config.yaml
cluster:
  namespace: ["default", "your-namespace"]

Here we have only two environment variables

KUBE_CONFIG this is your kube config path so we can access your kubernetes cluster

$ export KUBE_CONFIG=~/.kube/config

SHOW_TABLE this is whether it will be presented in a table with color or not, only visual presentation of the information

$ export SHOW_TABLE=true

show table

$ export SHOW_TABLE=false

show table

INSTALL

To run k8slog just install it if you have Go, or compile it.

$ go install github.com/jeffotoni/k8slog@latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
sdk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL