-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugins: add tail (github.com/boz/kail) (#150)
refs boz/kail#34
- Loading branch information
1 parent
e169b06
commit 2ea62f0
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |