Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/webofmars/kubectl-custom-cols

a kubectl plugin that help you customize output columns like a boss !
https://github.com/webofmars/kubectl-custom-cols

cli columns hacktoberfest krew kubectl kubectl-custom-cols kubectl-plugin kubectl-plugins kubernetes output

Last synced: about 2 months ago
JSON representation

a kubectl plugin that help you customize output columns like a boss !

Awesome Lists containing this project

README

        

# kubectl-custom-cols

A "kubectl get" replacement with customizable column presets.

Master you kubectl output like a JSONpath pro :-)

## Using kubectl-custom-cols

```sh
kubectl custom-cols -o
```

ex:

```sh
kubectl custom-cols -o qos-class pods -l app=nginx
```

will output:

```sh
NAME QoS-Class STATUS
web-front-0 BestEffort Running
web-front-1 BestEffort Running
web-back-0 Burstable Running
```

## Install kubectl-custom-cols

### Prereqs

If you're on Mac OS X, you may need to first run `brew install coreutils` to get the `realpath` function.

### Manually

* download the latest release
* copy `kubectl-custom-cols` script and the `templates` folder together, somewhere in your PATH

### Via krew

If you already have the [krew](https://github.com/kubernetes-sigs/krew) kubectl plugin manager installed, you can just issue the following command:

`kubectl krew install custom-cols`

## Customize kubectl-custom-cols

You can add you own templates in the `templates` folder.

## Contributing

Please feel free to send a PR or open issues ta the original repo :

You can send your own templates to be included in the default package