Kubectl alternatives: kubeman

Wandering Twitter weekend, I found a very interesting little tool called kubeman, but added no small ambition, inspirational become kubectla substitute for real-time monitoring and management kubernetes clusters can also debug the problems associated with Istio.

If only kubectl, when problems arise in the grid service, you may need to run a lot of orders, but also to cross-reference information from multiple output commands, which can lead to problem analysis process is very complicated. These cross-references kubeman complex logic and analysis information hiding, exposed to only a UI interface, some common packaging operation item for each resource object, which can simplify the operation of many processes.

Installation is very simple, to release the page to download the appropriate binary, then run directly enough. By following a complete example to demonstrate its workflow:

1, run kubeman binaries.

2, clicking Select Clusterthe menu select the cluster, may also be in the NAMESPACESselected one or more namespace dialog, the session item back operation is limited in certain namespace.

3, previously selected cluster context now appear at the top.

4, left column is the menu panel, action items are grouped according to different resource types, you can select action items to be performed from a menu group.

5, due to the very large number of action items and find what we want action items can be very strenuous, but fortunately there is a search box at the top, you can find the item you want to operate through the search, the search results will be displayed in Matching Recipesthe menu in.

6, some of the action items will do further screening, such as namesapce, service, pod and so on.

7, the right is the output panel, and a display output for capturing all action items. Also it provides some additional actions:

  • Once the action items to run and output the results, you can search by keyword corresponding text in the search box at the top of the Output panel. If you want to delete keyword search, you can press on the keyboard esckeys.

  • 每个操作项的输出会按层级进行分组。最顶部的输出行(深蓝色)显示的是输出结果的标题,单击这一行会将整个输出折叠起来,只显示组和子组,这样就可以看到整个输出的概要。再次单击这一行就会显示整个输出。

  • 同理,你可以单击某一个组来折叠这个组的输出,只显示子组。同理适用于子组。
  • 不同的子组下的输出都可以展开和折叠,你可以上下滚动来选择感兴趣的子组,然后单击展开输出。

8、有些操作项需要你在搜索框中输入关键词,然后才会显示输出。例如,操作项 Find component by IP 会等待你输入一个或多个 IP 地址,然后输出结果。此时搜索框扮演了两个角色,既作为输出结果的搜索框,也作为操作项的输入框。如果一个操作项支持输入,需要在输入的字符串前面加上 / 以表明这是操作项的输入。多个输入关键词可以用 , 隔开。

9、有些操作项支持重复运行,一旦这些操作项执行完成,你就能在输出面板的顶部看到一个 ReRun 菜单,单击它就可以重新运行。你也可以在搜索框中输入命令 /r 来重新运行。

10、有些操作项支持情况输出结果,一旦这些操作项执行完成,你就能在输出面板的顶部看到一个 Clear 菜单,单击它就可以清理输出结果。你也可以在搜索框中输入命令 /clear 或者 /c 来清理输出结果。

11、有些操作项支持自动定期执行,这些操作项的菜单栏中有一个 Auto Refresh 选项,还可以自定义执行周期,默认的周期是 15s。

12、搜索框支持更高级的搜索语法,例如操作符 or 表示或,! 表示非。

总的来说,kubeman 还是很强大的,简直是个 k8s 集群调试神器,除了上面提到的功能之外,它支持窗口多开,窗口最大化,还可以选择暗黑主题,赶快试试吧!

Guess you like

Origin www.cnblogs.com/ryanyangcs/p/11491018.html