Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins: add tail (github.com/boz/kail) #150

Merged
merged 1 commit into from
May 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions plugins/tail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:
name: tail
spec:
version: "v0.10.1"
platforms:
- uri: https://github.com/boz/kail/releases/download/v0.10.1/kail_0.10.1_darwin_amd64.tar.gz
sha256: c0539d100c0c72ac88340976df7c3dd96febfcced7cf6cc5272b61a5ea514506
selector:
matchLabels:
os: darwin
arch: amd64
bin: kail
files:
- from: "kail"
to: "."
- uri: https://github.com/boz/kail/releases/download/v0.10.1/kail_0.10.1_linux_amd64.tar.gz
sha256: 253ab06570bc3a7afc6ab163b0ac9808b1ce257d2cbcd87c09859511bcbfc138
selector:
matchLabels:
os: linux
arch: amd64
bin: kail
files:
- from: "kail"
to: "."
homepage: https://github.com/boz/kail
shortDescription: Stream logs from multiple pods and containers using simple, dynamic source selection.
description: -|
Kail https://github.com/boz/kail - "Just show me the logs"

Stream logs from all matched containers of all matched pods. Match pods by service,
replicaset, deployment, and others. Adjusts to a changing cluster - pods are
added and removed from logging as they fall in or out of the selection.
caveats: |
Documentation:

See https://github.com/boz/kail or

$ kubectl tail --help

Usage:

# match all pods
$ kubectl tail

# match pods in the 'frontend' namespace
$ kubectl tail --ns staging

# match pods belonging to a replicaset named 'workers' in any namespace.
$ kubectl tail --rs workers

# match pods belonging to the replicaset named 'workers' only in the 'staging' namespace
$ kubectl tail --rs staging/workers

# match pods belonging to both the service "frontend" and the deployment "webapp"
$ kubectl tail --svc frontend --deploy webapp