kube-fzf

授权协议 MIT License
开发语言 SHELL
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 夏侯涵映
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

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

describepod

tailpod

tailpod - multiple containers

execpod

execpod - multiple containers

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

Similar Projects

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

 相关资料
  • Kube 足够的简单,足够小,具有很强的自适应能力,是个响应式的 CSS 框架。它拥有最新最炫的网格和漂亮的字体排版,没有任何样式绑定,给用户以绝对的自由。 支持的浏览器包括: Latest Chrome Latest Firefox Latest Safari Latest Opera IE 8+ 手机浏览器

  • Kube-OVN 将基于 OVN/OVS 的网络虚拟化方案带入 Kubernetes,提供了针对企业应用场景的高级容器网络编排功能。 主要功能: 基于Namespace的子网划分,以及网络控制 容器固定 IP IPv6支持 细粒度网络策略 动态 QoS 分布式和集中式网关 内嵌负载均衡器 支持集群内外网络直通 控制平面的灾备及高可用 丰富的监控和链路追踪工具 未来计划: 基于 XDP/DPDK/O

  • kube-eventer 是一个事件发射器,它将 Kubernetes 事件发送到接收器(例如,DingTalk、SLS、Kafka 等)。 监控是保障系统稳定性的重要组成部分,在 Kubernetes 开源生态中,资源类的监控工具与组件百花齐放,但是,只有资源类的监控是远远不够的,因为资源监控存在如下两个主要的缺欠: 监控的实时性与准确性不足 监控的场景覆盖范围不足 Kubernetes 的核心

  • kube-backup Quick 'n dirty kubernetes state backup script, designed to be ran as kubernetes Job. Think of it like RANCID for kubernetes. Props to @gianrubio for coming up with the idea. Setup Use the

  • kube-ps1: Kubernetes prompt for bash and zsh A script that lets you add the current Kubernetes context and namespaceconfigured on kubectl to your Bash/Zsh prompt strings (i.e. the $PS1). Inspired by s

  • �� Provision a Kubernetes / CoreOS Cluster on Linode Automatically provision a scalable CoreOS/Kubernetes cluster on Linode with zero configuration. The cluster will comprise of a single Kubernetes ma