Linux command
kube-fzf 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Interactive pod selection
findpod
Tail pod logs
tailpod
Exec into pod
execpod
Describe pod
describepod
Port forward
pfpod
说明
kube-fzf is a set of shell functions that wrap common kubectl operations with fzf fuzzy-finding for interactive Kubernetes resource selection. Instead of typing exact pod names or copying them from `kubectl get pods` output, kube-fzf presents a searchable, filterable list of resources and executes the chosen kubectl command on the selected item. The package provides several purpose-built commands: `findpod` for locating and selecting pods, `tailpod` for streaming logs, `execpod` for opening a shell session inside a container, `describepod` for viewing pod details, and `pfpod` for setting up port forwarding. Each command queries the current Kubernetes context and namespace, presents matching pods through fzf's interactive interface, and passes the selection directly to the appropriate kubectl subcommand.
参数
- findpod
- Fuzzy find and select pod.
- tailpod
- Tail logs with fuzzy selection.
- execpod
- Exec into pod interactively.
- describepod
- Describe selected pod.
- pfpod
- Port forward to selected pod.
FAQ
What is the kube-fzf command used for?
kube-fzf is a set of shell functions that wrap common kubectl operations with fzf fuzzy-finding for interactive Kubernetes resource selection. Instead of typing exact pod names or copying them from `kubectl get pods` output, kube-fzf presents a searchable, filterable list of resources and executes the chosen kubectl command on the selected item. The package provides several purpose-built commands: `findpod` for locating and selecting pods, `tailpod` for streaming logs, `execpod` for opening a shell session inside a container, `describepod` for viewing pod details, and `pfpod` for setting up port forwarding. Each command queries the current Kubernetes context and namespace, presents matching pods through fzf's interactive interface, and passes the selection directly to the appropriate kubectl subcommand.
How do I run a basic kube-fzf example?
Run `findpod` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does findpod do in kube-fzf?
Fuzzy find and select pod.