当前位置: 首页 > news >正文

【GUI-Agent】阶跃星辰 GUI-MCP 解读---()---GUI-MCP 整体架构霉

前言

在使用 kubectl get $KIND -o yaml 查看 k8s 资源时,输出结果中包含大量由集群自动生成的元数据(如 managedFields、resourceVersion、uid 等)。这些信息在实际复用 yaml 清单时需要手动清理,增加了额外的工作量。

使用 kubectl-neat 插件,可以自动移除这些由集群生成的冗余字段,仅保留有意义的内容,使 yaml 更加简洁,方便复用。

安装

插件方式安装

kubectl krew install neat

## 作为 kubectl 插件安装,使用方式为:

kubectl neat

二进制方式安装

## 版本选择:

## https://github.com/itaysk/kubectl-neat/releases

## 当前环境为 ubuntu 2404 LTS

wget https://github.com/itaysk/kubectl-neat/releases/download/v2.0.4/kubectl-neat_linux_amd64.tar.gz

tar xf kubectl-neat_linux_amd64.tar.gz

mv ./kubectl-neat /usr/local/bin/

## 创建别名(这里看个人习惯)

vim /root/.bashrc

alias kneat='kubectl-neat'

使用

本次使用二进制方式部署,实际上参数是相同的,没区别

root@network-demo:~# kubectl-neat help

Usage:

kubectl-neat [flags]

kubectl-neat [command]

## 示例是通过 kubectl plugin 方式安装,使用二进制安装改成 kubectl-neat 就好

Examples:

kubectl get pod mypod -o yaml | kubectl neat

kubectl get pod mypod -oyaml | kubectl neat -o json

kubectl neat -f - <./my-pod.json

kubectl neat -f ./my-pod.json

kubectl neat -f ./my-pod.json --output yaml

Available Commands:

## 自动补全命令用的

completion Generate the autocompletion script for the specified shell

get

help Help about any command

version Print kubectl-neat version

Flags:

-f, --file string file path to neat, or - to read from stdin (default "-")

-h, --help help for kubectl-neat

-o, --output string output format: yaml or json (default "yaml")

命令补全

简单来说就是按两下 tab 后自动补充没拼完的参数

?? 注:其实没啥用...他只能补全命令本身的参数,并不能补全 k8s 相关信息

root@network-demo:~# kubectl-neat completion --help

Generate the autocompletion script for kubectl-neat for the specified shell.

See each sub-command's help for details on how to use the generated script.

Usage:

kubectl-neat completion [command]

Available Commands:

bash Generate the autocompletion script for bash

fish Generate the autocompletion script for fish

powershell Generate the autocompletion script for powershell

zsh Generate the autocompletion script for zsh

Flags:

-h, --help help for completion

Global Flags:

-o, --output string output format: yaml or json (default "yaml")

## 当前环境使用 bash

root@network-demo:~# hostnamectl

Static hostname: network-demo

Icon name: computer-vm

Chassis: vm

Virtualization: kvm

Operating System: Ubuntu 24.04.3 LTS

Kernel: Linux 6.8.0-88-generic

Architecture: x86-64

## 添加命令补全

echo "source <(kneat completion bash)" >> ~/.bashrc && source ~/.bashrc

## 查看效果

## 上面说没啥用的地方就在这...实际上能用的参数只有 get(kubectl-neat 自己的参数)

## 当你补全 get 后就会发现他无法识别 k8s 资源

root@network-demo:~# kubectl-neat

completion (Generate the autocompletion script for the specified shell) help (Help about any command)

get version (Print kubectl-neat version)

使用方式

## 这里我直接将 kubectl get -o yaml 与 kubectl-neat get -o yaml 输出对比

kubectl-neat get -- pods -n deepflow deepflow-server-fc484c85-p67gl -o yaml > deepflow-kneat.yaml

kubectl get pods -n deepflow deepflow-server-fc484c85-p67gl -o yaml > deepflow-kubectl.yaml

## 通过 icdiff 输出两个文件的对比结果,这里为了方便大家看,只把删除的内容放上来了

root@network-demo:~# icdiff deepflow-kubectl.yaml deepflow-kneat.yaml

creationTimestamp: "2026-01-23T02:24:57Z"

generateName: deepflow-server-fc484c85-

generation: 1

ownerReferences:

- apiVersion: apps/v1

blockOwnerDeletion: true

controller: true

kind: ReplicaSet

name: deepflow-server-fc484c85

uid: 528ab77f-67ba-4099-8771-bfe06ca9ce2f

resourceVersion: "4864722"

uid: 0d5ff97b-9c48-4abf-be8b-d2b76f7a14d2

nodeAffinity: {}

apiVersion: v1

apiVersion: v1

apiVersion: v1

apiVersion: v1

apiVersion: v1

scheme: HTTP

successThreshold: 1

timeoutSeconds: 1

protocol: TCP

protocol: TCP

protocol: TCP

protocol: TCP

scheme: HTTP

periodSeconds: 10

successThreshold: 1

timeoutSeconds: 1

resources: {}

securityContext: {}

terminationMessagePath: /dev/termination-log

terminationMessagePolicy: File

dnsConfig: {}

dnsPolicy: ClusterFirst

enableServiceLinks: true

nodeName: network-demo

restartPolicy: Always

schedulerName: default-scheduler

securityContext: {}

serviceAccount: deepflow-server

terminationGracePeriodSeconds: 30

defaultMode: 420

defaultMode: 420

apiVersion: v1

status:

## 下面是所有 status 内容...嗜摆灿锌

http://www.cnnetsun.cn/news/1790245.html

相关文章:

  • 西门子SMART200 PLC烘箱流水线四路加热PID温度控制程序,包含PLC编程、变频器通讯...
  • 脚本管理工具怎么选?从3个维度重新认识ScriptCat与油猴
  • 2026年OpenClaw怎么部署?阿里云5分钟搭建+大模型APIKey配置、Skill集成保姆级教程
  • 低代码开发,降低成本的同时提升质量
  • 老古董AD1674模数转换器,在51单片机温度测量项目里还能这么用?
  • EvolveRouter: Co-Evolving Routing and Prompt(论文解读)
  • G-Helper:华硕笔记本性能控制工具深度评测与使用指南
  • 安卓启动页兼容性进阶指南:从基础适配到Android 12+ SplashScreen API深度优化
  • 图像去雾新手必看:5个高质量数据集下载与使用避坑指南(附百度云链接)
  • 使用 Python 操作 Excel 文件中的工作表(添加和删除)
  • 如何准确获取 HTTP 响应的完整 MIME 类型(含媒体子类型)
  • MTK Camera调试实战:搞定I2C报错、图像反向、颜色异常等常见问题
  • 2026年,成都那些让人眼前一亮、超合意的配眼镜店究竟在哪?
  • IDM永久使用开源解决方案:安全验证与实战指南
  • 开源机器人手终极指南:如何用OpenHand技术解决柔性抓取的三大挑战
  • 记录复现多模态大模型论文OPERA的一周工作()佬
  • Claude终端命令大全
  • AI净界RMBG-1.4应用场景全解析:从表情包制作到设计素材生成
  • 如何配置表结构支持读写分离标记_在COMMENT中添加路由规则的架构级应用
  • 毕业设计实战:基于SSM+Vue的家乡特产网上商城设计与实现指南
  • SQL中如何处理多重嵌套的字符串:函数嵌套调用技巧
  • 2026精油灌装机高性价比品牌评选TOP6
  • C#与Halcon联合开发的通用视觉框架:易学易用,助力视觉应用快速开发
  • 【EF Core 10向量搜索架构设计终极指南】:20年微软数据平台架构师亲授生产级向量检索系统落地的5大避坑原则
  • 城通网盘下载速度慢?ctfileGet高效解决方案让下载效率提升87%
  • 【Skill】Superpowers 常用命令与使用场景
  • FISCO BCOS区块链共识之Raft
  • Java vs 汇编:高级与低级的终极对决
  • AI终于学会“动手”了:让ToClaw在高铁上帮我干活
  • 代码之外周刊(第期):当技术让一切趋同,我们还剩什么?律