← 返回命令列表

Linux command

kl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

View logs

kl

View logs from a specific namespace

kl -n [namespace]

View logs matching a pattern

kl [pattern]

说明

kl is an interactive Kubernetes log viewer for the terminal. It allows you to view logs across multiple containers, pods, namespaces, and clusters, selecting containers interactively or through automatic pattern matching against names and labels. Features include real-time log streaming, container filtering, log archiving, clipboard copying, and fullscreen views. You can focus on logs from specific containers, filter by labels, and toggle different Kubernetes contexts to narrow down the logs you want to view.

FAQ

What is the kl command used for?

kl is an interactive Kubernetes log viewer for the terminal. It allows you to view logs across multiple containers, pods, namespaces, and clusters, selecting containers interactively or through automatic pattern matching against names and labels. Features include real-time log streaming, container filtering, log archiving, clipboard copying, and fullscreen views. You can focus on logs from specific containers, filter by labels, and toggle different Kubernetes contexts to narrow down the logs you want to view.

How do I run a basic kl example?

Run `kl` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more kl examples?

This page includes 3 examples for kl, plus related commands for nearby Linux tasks.