当前位置: 首页 > 软件库 > 云计算 > 云原生 >

kube-shell

授权协议 Apache-2.0 License
开发语言 Python
所属分类 云计算、 云原生
软件类型 开源软件
地区 不详
投 递 者 单于浩邈
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

kube-shell

Kube-shell: An integrated shell for working with the Kubernetes CLI

Under the hood kube-shell still calls kubectl. Kube-shell aims toprovide ease-of-use of kubectl and increasing productivity.

kube-shell features

Auto Completion of Commands and Options with in-line documentation

Fish-Style Auto Suggestions

Command History

You can use up-arrow and down-arrow to walk through the history ofcommands executed. Also up-arrow partial string matching is possible.For e.g. enter 'kubectl get' and use up-arrow and down-arrow to browsethrough all kubectl get commands. You could also use CTRL+r to searchfrom the history of commands.

Fuzzy Searching

Server Side Auto Completion

Context information

Details of current context from kubeconfig is always readily displayedon the bottom toolbar. By pressing F4 button you can switch between theclusters and using F5 can switch between namespaces.

vi editing mode

Press ESC you have all key bindings (w: next word, b: prev word) to moveacross the words.

Installation

The kube-shell requires python andpip to install. You caninstall the kube-shell using pip:

$ pip install kube-shell

Usage

After installing kube-shell through pip, just run kube-shell to bring upshell.

At the kube-shell command prompt you can run exit or press F10 to exitthe shell. You can clear the screen by running clear command.

By default drop-down suggestion list also displays in-linedocumentation, you can turn on/off inline documnetation by pressing F4button.

You can run any shell command by prefixing command with "!". For e.g.!ls would list from the current directory.

Under the hood

Other than generation of suggestions all heavy lifting is done byPython's prompttoolkit,Pygments libraries.

A GO program is used to generatekubectl's commands, subcommands, arguments, global options and localoptions in json format. Kube-shell usesgenerated json file to suggest commands, subcommands, options and args.For server side completion kube-shell usesclient-pythonlibray to fetch the resources.

Status

Kube-shell should be useful now. But given that its aim is to increaseproductivity and easy of use, it can be improved in a number of ways. Ifyou have suggestions for improvements or new features, or run into a bugplease open an issuehere or chatin the Gitter.

Acknowledgement

Kube-shell is inspired by AWSShell,SAWS and uses awesome Pythonprompttoolkit

  • kubectl Shell命令提示工具kube-shell 0、关于kube-shell Kube-shell是基于python-prompt-toolkit实现的,旨在提供Kubectl的易用性并提高生产力。 kube-shell提供如下功能: 自动完成kubectl命令及参数提示 颜色标示显示 历史命令自动填充 模糊查询,服务端自动完成 上下文信息及切换,F4切换集群,F5切换Namespac

  • 研究了个一键部署Kubernetes的shell脚本,经验证可以在 CentOS 7 1804 及 CentOS 7 1810 上成功部署Kubernetes单机环境,但需要在执行脚本前做好OS环境的初始化。 以下是该脚本的内容: #!/bin/sh mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.ori

  • kube-controller-manager属于master节点组件,kube-controller-manager集群包含 3 个节点,启动后将通过竞争选举机制产生一个 leader 节点,其它节点为阻塞状态。当 leader 节点不可用后,剩余节点将再次进行选举产生新的 leader 节点,从而保证服务的高可用性。 1 安装准备 特别说明:这里所有的操作都是在devops这台机器上通过ans

  • 转载自:https://my.oschina.net/neverforget/blog/1609780 kubectl Shell命令提示工具kube-shell 0、关于kube-shell Kube-shell是基于python-prompt-toolkit实现的,旨在提供Kubectl的易用性并提高生产力。 kube-shell提供如下功能: 自动完成kubectl命令及参数提示 颜色标示显

  • 1、kube-router 准备 1.1 kube-router 部署在所以node节点包括vip节点ingress节点 1.2 kube-router 二进制准备 mkdir -p /apps/work/k8s/kube-router cd /apps/work/k8s/kube-router wget https://github.com/cloudnativelabs/kube-router

 相关资料
  • 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