news 2026/5/1 17:03:21

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

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【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 内容...瓮忧词鲁

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/4/30 5:40:24

ITK-SNAP医学图像分割:从新手到专家的5个关键步骤

ITK-SNAP医学图像分割&#xff1a;从新手到专家的5个关键步骤 【免费下载链接】itksnap ITK-SNAP medical image segmentation tool 项目地址: https://gitcode.com/gh_mirrors/it/itksnap ITK-SNAP作为一款开源的专业医学图像分割工具&#xff0c;已经在全球数千个研究…

作者头像 李华
网站建设 2026/4/30 5:44:27

GigE 交换机选型建议(支持 PTP)

多相机同步总失败&#xff1f; 你可能只差一台 支持 PTP 的 GigE 交换机&#xff01;“4 台相机明明都连上了&#xff0c;为什么时间戳对不齐&#xff1f;” “PTP 状态显示 ‘Slave’&#xff0c;但同步误差还是 >1ms&#xff1f;”问题很可能出在交换机上&#xff01; 普…

作者头像 李华
网站建设 2026/4/30 6:34:39

破圈逆袭!二次元游戏为何能持续俘获大众芳心?

如今打开各大游戏榜单&#xff0c;二次元题材游戏常年占据前列&#xff0c;相关话题频繁霸屏社交平台&#xff1b;据行业报告显示&#xff0c;中国二次元文化行业市场规模已突破千亿元&#xff0c;其中二次元游戏作为核心载体&#xff0c;增速持续领跑整个游戏市场。曾经被贴上…

作者头像 李华
网站建设 2026/4/30 6:41:14

00鲲鹏:华夏之光永存——架构师级·带领鲲鹏走进世界巅峰

鲲鹏&#xff1a;华夏之光永存——架构师级带领鲲鹏走进世界巅峰 系列总纲 在全球数字经济深度变革、算力技术成为国家核心战略竞争力的当下&#xff0c;国际算力芯片赛道竞争日趋白热化&#xff0c;技术壁垒、生态垄断、供应链安全成为国产算力发展的核心掣肘。当前行业内对鲲…

作者头像 李华
网站建设 2026/4/30 6:41:24

小型电磁脉冲干扰(EMP)的设计与安全防护策略

1. 小型EMP干扰器的核心原理与潜在影响 我第一次接触电磁脉冲这个概念&#xff0c;是在一次电子设备故障排查中。当时实验室里一台价值几十万的示波器突然失灵&#xff0c;排查了半天才发现是隔壁高压实验室做脉冲实验时产生了电磁泄漏。这次经历让我深刻意识到&#xff0c;即便…

作者头像 李华
网站建设 2026/4/30 6:54:44

什么是连续特征离散化?分桶(Bucketing)有什么技巧?

什么是连续特征离散化?分桶(Bucketing)有什么技巧? 🚀 本文收录于Github:AI-From-Zero 项目 —— 一个从零开始系统学习 AI 的知识库。如果觉得有帮助,欢迎 ⭐ Star 支持! by @Laizhuocheng 一、简介 想象一下,你正在整理衣柜。如果把每件衣服都按精确到毫米的尺寸来…

作者头像 李华