diff --git a/plugins/tail.yml b/plugins/tail.yml new file mode 100644 index 00000000000..a0f058ef9f0 --- /dev/null +++ b/plugins/tail.yml @@ -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