Skip to content
프로젝트

소개

Shell commands using kubectl and fzf for command-line fuzzy searching of Kubernetes Pods.

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

kube-fzf

Shell commands using kubectl and fzf for command-line fuzzy searching of Kubernetes Pods. It helps to interactively:

  • search for a Pod
  • tail a container of a Pod
  • exec in to a container of a Pod
  • describe a pod
  • port forward pod

Prerequisite

  • fzf
  • xclip Only for Linux and it is optional

Install

Using Homebrew

brew tap thecasualcoder/stable
brew install kube-fzf

Using AUR ( ArchLinux )

yay -S kube-fzf

Manual

git clone https://github.com/thecasualcoder/kube-fzf.git ~/.kube-fzf
sudo ln -s ~/.kube-fzf/findpod /usr/local/bin/findpod
sudo ln -s ~/.kube-fzf/execpod /usr/local/bin/execpod
sudo ln -s ~/.kube-fzf/tailpod /usr/local/bin/tailpod
sudo ln -s ~/.kube-fzf/describepod /usr/local/bin/describepod
sudo ln -s ~/.kube-fzf/pfpod /usr/local/bin/pfpod
sudo ln -s ~/.kube-fzf/kube-fzf.sh  /usr/local/bin/kube-fzf.sh

Usage

findpod

findpod [-a | -n <namespace-query>] [pod-query]

describepod

describepod [-a | -n <namespace-query>] [pod-query]

tailpod

tailpod [-a | -n <namespace-query>] [pod-query]

execpod

execpod [-a | -n <namespace-query>] [pod-query] <command>

pfpod

pfpod [-c | -o | -a | -n <namespace-query>] [pod-query] <port>

Options

-a                    -  Search in all namespaces
-n <namespace-query>  -  Find namespaces matching <namespace-query> and do fzf.
                         If there is only one match then it is selected automatically.
-h                    -  Show help

Demo

findpod

Demo for findpod

describepod

Demo for describepod

tailpod

Demo for tailpod

tailpod - multiple containers

Demo for tailpod with multiple containers

execpod

Demo for execpod

execpod - multiple containers

Demo for execpod with multiple containers

fzf Namespace (only when no match found for the given namespace)

Demo for wrong namespace

Similar Projects

For switching Kubernetes contexts and namespaces interactively from the command-line use kubectx

관련 프로젝트 살펴보기

불러오는 중…