Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vertexclique/korq
Kubernetes Dynamic Log Tailing Utility
https://github.com/vertexclique/korq
cluster-management kubernetes logging logutils
Last synced: 3 months ago
JSON representation
Kubernetes Dynamic Log Tailing Utility
- Host: GitHub
- URL: https://github.com/vertexclique/korq
- Owner: vertexclique
- License: mit
- Created: 2018-10-21T17:41:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T12:29:35.000Z (about 6 years ago)
- Last Synced: 2024-09-17T23:47:52.366Z (4 months ago)
- Topics: cluster-management, kubernetes, logging, logutils
- Language: Rust
- Size: 141 KB
- Stars: 42
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![K∅RQ](https://i.imgur.com/VjF6Oz0.png)
**Kubernetes Dynamic Log Tailing Utility**
[![crates.io](https://meritbadge.herokuapp.com/korq)](https://crates.io/crates/korq)
[![Build Status](https://travis-ci.org/vertexclique/korq.svg?branch=master)](https://travis-ci.org/vertexclique/korq)
![Crates.io](https://img.shields.io/crates/l/korq.svg)
![Crates.io](https://img.shields.io/crates/d/korq.svg)
[![Master API docs](https://img.shields.io/badge/docs-master-green.svg)](https://docs.rs/korq)K∅RQ is used for tailing pod logs concurrently and following groups at once. It was basically a need to follow logs during deployment and see how instances behave during and after deployment. This is the main motive behind K∅RQ.
## Installation
Start by installing K∅RQ with Cargo.
```
cargo install korq
```Or download it from the release tag!
Check that cargo bin path is in your PATH.
K∅RQ first looks for Kubernetes configuration file after that it will look for either CA certificates, cluster side certificates or an auth provider token for client initialization. Before that you might want to set your environment variable for configuration file which can be done via environment variable. By default it is using: `$HOME/.kube/config`.
```bash
$ KUBECONFIG=$HOME/somepath/admin.conf
```## Usage
After these steps you need to set your default project if you are going to use token. Access Token must be valid during execution. OFC. yep!
By default K∅RQ's namespace is `default`. You can pass this argument as a parameter to the command with `--namespace` flag.
For filtering the pods by name you can pass pods' base name to the `--filter` parameter.
Then you can invoke K∅RQ with:
```bash
korq --context --namespace --filter
```If you want to tail a specific container in pod group you can use:
```bash
korq --context --namespace --filter --container
```**Both commands in short:**
```bash
korq -k -n -f
``````bash
korq -k -n -f -c
```**Enjoy the ride!**