2026-01-01 01:49:39
2025 年就这样过去了,做了很多事情,发生了很多事情,是转折的一年,是难忘的一年,是值得回味的一年。
这一年,生活轨迹发生了很堵变化,思想认识也发生了很多转变,突然要写年终总结,真不知道从何说起。就想到哪里说到哪里吧。
2025 年探索了巨多的事情。这一年是 AI 继续井喷式发展的一年,是各行各业不断变革的一年。年初的时候 AI Agent 成为各家媒体预言本年度的最热词。年底 Manus 被 Meta 收购,或许是 AI Agent 的高光时刻吧。与此同时 AI Agent 似乎正在深刻的改变各行各业。
就我个人而言,在不断的探索,可或许是眼界和能力还有限,能做出的价值很有限。能做的就是不断的尝试,不断地继续。
今年的 github 提交量挺可观的,因为我不断的在业余时间做各种尝试。

相比于去年,提交量增加了非常非常多。这还只是在 github 的提交,工作时间内网的提交可能是这几倍吧。
自己的 forgejo 服务器可以看到的提交量也挺多。

当然跟大佬们相比还是相差甚远,跟我自己去年相比,则是增加了很多了,对此我很满意。
价值创造。对于价值一词的理解逐渐深刻,特别是今年听到大湾鸡之父刘平云谈到吉祥物如何发挥价值的采访,我对价值这一词突然有一些具象的感觉。
听Manus联合创始人兼首席科学家季逸超(Peak)的访谈时,谈到他高中时期喜欢倒腾电脑,恰好那段时间乔布斯发布了 App story ,他做的软件在上面稳定的售卖,拿到现金流,足以向家长和老师证明自己做的事情是有价值的,让他可以放手去做。
我也在想,我如何创造或证明自己更大的价值呢。相比于那些比我更优秀的人,他们更早就想明白了这个问题,相比于那些更优秀的人慢一点,但一定要开始思考。
2025 学了很多东西,像是有学习焦虑一样,学了很多东西,用在各种方面。
但不知怎么的,总感觉不够深入,创造的价值优先,探索更多的可能性。

微信读书阅读的书籍变少了,因为我花费了更多的时间阅读纸质书和输出,还有做很多探索的事情。给自己定的目标是尽量每个月买一本纸质书,读完一本再买下一本。今年陆续买了几本,希望明年阅读更多一些。
除了阅读,还学习了很多技术和推广等等相关的知识,广泛的涉猎。我不希望自己局限在技术领域,我希望自己能够积极突破,让自己做的东西真正能为更多的人产生价值,为此我需要不断的尝试。除了努力学习,尽量深入的掌握所需领域知识,还需要学习增长、推广、运营等等相关的知识和思维。希望新的一年能够有所突破吧。
最近自己我感觉是输出的低谷了。因为自己陷入了很多纠结和迷茫之中。
博客不想更新了,因为总感觉浅尝辄止,深入内容又很难把握方向,不知道如何发力。感觉没人会关心,自己在不断的思考。另一方面看着不断有访客进来,努力维持着博客不要倒。
除了博客,有一段时间尝试过日更公众号,每天想到什么,突然的灵感就用 flomo 记录下来,每天花 5-10 min 批量导出当天的想法,简单排版发公众号,坚持了几周放弃了,因为实在给自己太大压力了,感觉对健康状况有害,就暂时停止了。
关键问题还是方向和方法,这些问题我还须继续思考和尝试。
今年在技术探索方面同样做了很多努力,从AI到容器化,从算力底座到业务落地,希望利用一切可以看到的东西来尝试。容器方面参与开源社区做了一些贡献,在编码的过程中学到很多,希望新的一年能够继续。AI方面确实不知道如何发力,总感觉有点投机的感觉,想做深入又很难抓住哪一个赚钱的行业。对于我个人状况不敢轻易去下注一个未知的领域,需要稳定上升。
在 AI 方面研究了不少东西,但效果有限,可能最直接的产出就是一些提示词的整理,还有用法的整理。用 AI 做了不少东西,发现在 AI 助力下自己到达瓶颈的速度变快了,做事情确实能够快速开始,同时也需要快速学习,找到方向和方法,重复直到拿到结果。
在业余探索方面确实做了很多东西,业余时间做了 12+ 的项目,都是在不断尝试,有的技术栈不好,有的效率太低,有的还是自嗨,有的功能不稳定,有的 SEO 不好。总之在做的过程中学到的许多东西才不断深入的理解。有的感觉非常简单的东西和道理,也得自己亲手做一次才能深刻理解,没有实践就下结论很容易只是自己以为自己懂了。
至于个人博客,从百度统计可以看到几年的 PV 不到 10w,UV 6w 左右。

来源方面大部分还是直接访问,来自搜索引擎的只有 15%,说明 SEO 和内容方向还是有不小问题。不过个人博客,无所谓了,还是想些什么就写什么,有什么专题的东西在做专题的网站来整理。

似乎浏览量的统计还是有点问题,从自己的 Plausible + GA4 看2025年的 UV 81k PV 108K

来源方面有快一半都来自于搜索引擎,难道百度统计不统计来自于其他搜索引擎的流量?

主要还是来自国内的访问,使用 Chrome 浏览器最多:

思考了超级多的东西,分享东西也总是一阵一阵的,方向举棋不定,投入的精力比较分散。这是我自己存在的问题,未来我想逐渐的改变。去感受身边的美好,尽量聚焦在一些事情上,分享的东西也可以逐渐多一些。自己探索的东西对其他人说不定真是很有价值的。特别的需要挖掘 Reddit 这类论坛,顺便提升英文水平。
这一年去了不少次医院,虽然都是些小毛小病,可也是很难受的,一丁点的难受都可能让自己的精力大大受挫。现在这个年纪很多不舒服,都是在提醒自己该休息了。一些问题,医生听到最后只说,你可能需要放一个长假。
因此看开一些事情,不要过多较真,不要让自己情绪过多的波动。责任心强,做事情认真。这是我的优势,可如果为了不值得的事情影响了身体健康就太不值得了。应该将有限的注意力放在更有价值的事情上。
今年的高光时刻大概就是入选中华人民共和国第十五届运动会火炬手了吧。参与了火炬传递,还上了央视,央视主持人读出了我的名字,还有专门的镜头。虽然是团体,可这件事大概也值的自己吹一辈子的牛了。一同入选的大部分都是企业家和各行各业非常有影响力的人。不过还是提醒自己要低调做人,高调做事。该高调高调,该低调低调。希望后面越来越好。希望自己能够做更多有价值的事情。
这也许是我这个人最大的缺点了吧。缺乏自信。而一个人的运气人生更好的一个大因素就是要自信,尤其最好是“盲目自信”,没有理由的自信。我已经在各方各面领先了很多人,我需要的是更自信的前进,追求更大的目标,创造更大的价值。因此,希望新的一年,提醒自己越来越自信。
新的一年,继续努力。愿自己健康快乐,爱的人同样健康幸福,希望大家都能够快乐平安,愿新的一年一切都好。
2025-12-13 15:04:00
若没有特别说明,默认使用 AiLoft 提供的 Nano Banana Pro 模型生成。

本次带来《城市星球》系列,先看效果图:
Refs: https://x.com/TechieBySA/status/1999577563295826208






提示词如下:
Create a hyperrealistic miniature planet showcasing [GuangZhou] with famous landmarks seamlessly curving around the spherical surface. Position bold 3D white text ”[CITY]” naturally integrated across the lush green central parkland with realistic shadows and dimensional depth. Capture from a top-down orbiting angle that emphasizes the dramatic planet curvature. Use soft golden hour daylight filtering through partly cloudy skies, casting gentle shadows on emerald grass and surrounding trees. The background should blend into a swirling atmospheric sky. Apply vibrant greens, warm earth tones, and soft blues. Render in polished photorealistic style with fine architectural detail.
可以讲示例中的 GuangZhou 换成其他城市,例如:
[GuangZhou]
[BeiJing]
[XiaMen]
[ZhengZhou]
[HongKong]
[Chicago]
[Macau]
效果都很不错,快用 AiLoft 试试吧。
2025-12-06 14:47:00
若没有特别说明,默认使用 AiLoft 提供的 Nano Banana Pro 模型生成。
本期封面图:


Refs: https://x.com/dotey/status/1995190286775881780
说明:
🍌 nano banana prompt
3D chibi-style miniature concept store of {Brand Name}
提示词:
3D chibi-style miniature concept store of {Brand Name}, creatively designed with an exterior inspired by the brand's most iconic product or packaging (such as a giant {brand's core product, e.g., chicken bucket/hamburger/donut/roast duck}). The store features two floors with large glass windows clearly showcasing the cozy and finely decorated interior: {brand's primary color}-themed decor, warm lighting, and busy staff dressed in outfits matching the brand. Adorable tiny figures stroll or sit along the street, surrounded by benches, street lamps, and potted plants, creating a charming urban scene. Rendered in a miniature cityscape style using Cinema 4D, with a blind-box toy aesthetic, rich in details and realism, and bathed in soft lighting that evokes a relaxing afternoon atmosphere. --ar 2:3
Brand name: Starbucks
效果图:
Starbucks
麦当劳
McDonald
refs: https://x.com/canghecode/status/1996593241421181403
提示词:
“我在[电影名称]的片场和[电影角色]自拍。
保持人物与参考图像完全一致,面部特征、骨骼结构、肤色、表情、姿势和外貌 100%相同。1:1 宽高比,4K 细节。”
实例:
参考图片:

我在[疯狂动物城]的片场和[Judy Hopps]、[Nick Wilde]自拍。
保持人物与参考图像完全一致,面部特征、骨骼结构、肤色、表情、姿势和外貌 100%相同。1:1 宽高比,4K 细节。
效果图:

refs: https://x.com/tsubame_99/status/1997181713546727621
Present an exquisite, miniature 3D cartoon-style scene of the user-specified subject, clearly viewed from a 45° top-down perspective.
Place the subject’s most iconic representation, character, or landmark prominently at the center, complemented by proportionally-sized icons of key elements, symbolic items, charming figures, props, and other details illustrating the subject’s core theme or narrative. The scene should be detailed, finely crafted, and playful.
Rendered with Cinema 4D, the modeling should be refined, smoothly rounded, and rich in texture, accurately capturing realistic PBR materials. Gentle, lifelike lighting and soft shadows should create a warm, comfortable ambiance.
Maintain a clean, minimalist layout and a solid-color background to highlight the primary content.
At the top-center of the scene, prominently display the subject name in a large font size.
All texts should be displayed in the language specified or entered by the user, without any background, and may subtly overlap with the scene elements to enhance overall design integration.
**Parameters:**
Aspect ratio: {User input, default 1:1}
Subject Name / Topic: {User input}
实例
Subject Name / Topic: Squid Game
Subject Name / Topic: 名侦探柯南
效果图:

refs: https://x.com/dotey/status/1993729800922341810?s=46
说明:
🍌 nano banana pro prompt (with gemini)
Dynamically generate a current weather card based on a given city name.
提示词:
Present a clear, 45° top-down view of a vertical (9:16) isometric miniature 3D cartoon scene, highlighting iconic landmarks centered in the composition to showcase precise and delicate modeling.
The scene features soft, refined textures with realistic PBR materials and gentle, lifelike lighting and shadow effects. Weather elements are creatively integrated into the urban architecture, establishing a dynamic interaction between the city's landscape and atmospheric conditions, creating an immersive weather ambiance.
Use a clean, unified composition with minimalistic aesthetics and a soft, solid-colored background that highlights the main content. The overall visual style is fresh and soothing.
Display a prominent weather icon at the top-center, with the date (x-small text) and temperature range (medium text) beneath it. The city name (large text) is positioned directly above the weather icon. The weather information has no background and can subtly overlap with the buildings.
The text should match the input city's native language.
Please retrieve current weather conditions for the specified city before rendering.
City name:【广州】
效果图

Refs: https://x.com/ykszs017/status/1997268159800434783
A vertical (9:16), intricately detailed 45° top-down isometric miniature 3D cartoon scene. The central composition is a richly composed and densely modeled visualization of an ancient Chinese poem's imagery. The scene features soft but highly tactile PBR textures with matte materials (like hand-sculpted clay with visible tool marks, aged wood grain, rough ceramic, and textured fabrics). Layered, lyrical lighting with soft shadows and ambient occlusion emphasizes the depth of every small feature. Key visual elements derived from the verses are creatively integrated into the landscape. The scene must be densely filled with micro-details to create a lived-in, immersive poetic ambiance: add scattered pebbles, moss in cracks, fallen leaves, dew drops on plants, intricate architectural carvings, tiny wildlife (like birds or fish), and environmental clutter relevant to the poem. Use a clean, unified composition that balances richness with aesthetics, set against a soft, solid-colored background that complements the scene's color palette. The overall visual style is fresh, soothing, yet elaborate and full of life. Text layout: At the top-center, display the poem title in large, elegant Chinese font. Directly beneath it, display the Dynasty and Author in medium font. The core verses of the poem are arranged below the main scene or subtly floating near relevant objects within the composition, with no background plate. Poem Title: 【天净沙·秋思】 Dynasty/Author: 【元·马致远】 Core Verses Context: 枯藤老树昏鸦,小桥流水人家,古道西风瘦马。夕阳西下,断肠人在天涯 。(Visual Focus: An old tree, tightly entwined with withered vines, has cracked branches, and a few crows are perched or flapping their wings. A small stone bridge spanning a cold and clear stream, with mist and moisture clinging to the water surface; Two or three compact houses by the stream, with very faint smoke from their chimneys, were torn apart by the cold wind. An ancient path, dusty by the autumn wind, extends deeper into the picture. A bony and thin horse, with dull fur, had its mane flapped sideways by the wind. A solitary traveler, wearing an old cloak, with a slender figure, strolled slowly in the wind. The withered and yellow grass lay on the ground, and the cracked dirt road had ruts. The setting sun was close to the horizon, its golden-red rays shattered by the wind, casting long shadows on the travelers, horses and ancient paths. The overall scene presents a desolate, dry and cold, and spacious atmosphere of late autumn.)
效果图:

2025-11-10 21:08:00
kubectl --raw 是一个强大的底层工具,允许你直接访问 Kubernetes API Server 的 REST API,绕过 kubectl 的客户端逻辑、准入控制器(Admission Controllers)和 Webhook。
kubectl 命令
↓
客户端验证和处理
↓
Admission Controllers
↓
Mutating Webhooks (修改请求)
↓
Validating Webhooks (验证请求)
↓
API Server 存储到 etcd
kubectl --raw
↓
直接 HTTP 请求到 API Server
↓
绕过大部分中间件
↓
直接操作 etcd
# 基本格式
kubectl get --raw <API-PATH>
# 或在某些版本中
kubectl --raw <API-PATH>
# 获取所有节点
kubectl get --raw /api/v1/nodes | jq .
# 获取特定节点
kubectl get --raw /api/v1/nodes/node-name | jq .
# 获取节点状态
kubectl get --raw /api/v1/nodes/node-name/status | jq .
# 获取所有命名空间
kubectl get --raw /api/v1/namespaces | jq .
# 获取 default 命名空间的所有 Pod
kubectl get --raw /api/v1/namespaces/default/pods | jq .
# 获取特定 Pod
kubectl get --raw /api/v1/namespaces/default/pods/pod-name | jq .
# 获取 Deployment
kubectl get --raw /apis/apps/v1/namespaces/default/deployments/deploy-name | jq .
# 获取 Service
kubectl get --raw /api/v1/namespaces/default/services/svc-name | jq .
# Pod 日志
kubectl get --raw /api/v1/namespaces/default/pods/pod-name/log
# Pod 状态
kubectl get --raw /api/v1/namespaces/default/pods/pod-name/status | jq .
# Service 的 Endpoint
kubectl get --raw /api/v1/namespaces/default/endpoints/service-name | jq .
# 更新节点(先获取,修改,再替换)
kubectl get --raw /api/v1/nodes/node-name > node.json
# 编辑 node.json 文件
vim node.json
# 替换(注意:不同版本语法可能不同)
kubectl replace --raw /api/v1/nodes/node-name -f node.json
# 或使用 kubectl proxy 方式
kubectl proxy --port=8001 &
curl -X PUT \
-H "Content-Type: application/json" \
-d @node.json \
http://localhost:8001/api/v1/nodes/node-name
# 获取节点当前状态
kubectl get --raw /api/v1/nodes/node-name > /tmp/node.json
# 使用 jq 删除特定条件
jq 'del(.status.conditions[] | select(.type == "EtcdIsVoter"))' \
/tmp/node.json > /tmp/node-fixed.json
# 更新节点状态
kubectl replace --raw /api/v1/nodes/node-name/status -f /tmp/node-fixed.json
# 创建 Pod
cat > pod.json <<EOF
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"name": "test-pod",
"namespace": "default"
},
"spec": {
"containers": [{
"name": "nginx",
"image": "nginx:latest"
}]
}
}
EOF
kubectl create --raw /api/v1/namespaces/default/pods -f pod.json
# 删除 Pod
kubectl delete --raw /api/v1/namespaces/default/pods/pod-name
# 使用 kubectl proxy 方式
kubectl proxy --port=8001 &
curl -X DELETE http://localhost:8001/api/v1/namespaces/default/pods/pod-name
# JSON Patch (精确的操作指令)
kubectl patch --raw /api/v1/nodes/node-name \
--type='json' \
-p='[
{"op": "add", "path": "/metadata/labels/new-label", "value": "new-value"},
{"op": "remove", "path": "/status/conditions/0"}
]'
# Strategic Merge Patch (合并式更新)
kubectl patch --raw /api/v1/nodes/node-name \
--type='merge' \
-p '{
"metadata": {
"labels": {
"environment": "production"
}
}
}'
# Merge Patch (简单合并)
kubectl patch --raw /api/v1/nodes/node-name \
--type='merge' \
-p '{"spec":{"unschedulable":true}}'
# 格式
/api/v1/<resource-type> # 集群级别
/api/v1/namespaces/<namespace>/<resource-type> # 命名空间级别
# 示例
/api/v1/nodes
/api/v1/nodes/node-name
/api/v1/nodes/node-name/status
/api/v1/namespaces/default/pods
/api/v1/namespaces/default/pods/pod-name
/api/v1/namespaces/default/services
# 格式
/apis/<group>/<version>/<resource-type>
/apis/<group>/<version>/namespaces/<ns>/<resource-type>
# 常用 API 组示例
/apis/apps/v1/deployments # Deployment
/apis/apps/v1/namespaces/default/deployments
/apis/batch/v1/cronjobs # CronJob
/apis/networking.k8s.io/v1/ingresses # Ingress
/apis/rbac.authorization.k8s.io/v1/clusterroles # ClusterRole
/apis/storage.k8s.io/v1/storageclasses # StorageClass
# 状态子资源
/api/v1/nodes/<name>/status
/apis/apps/v1/namespaces/<ns>/deployments/<name>/status
# 日志
/api/v1/namespaces/<ns>/pods/<name>/log
/api/v1/namespaces/<ns>/pods/<name>/log?container=container-name
# 执行命令
/api/v1/namespaces/<ns>/pods/<name>/exec
# 端口转发
/api/v1/namespaces/<ns>/pods/<name>/portforward
# 代理
/api/v1/nodes/<name>/proxy
/api/v1/namespaces/<ns>/pods/<name>/proxy
/api/v1/namespaces/<ns>/services/<name>/proxy
# 列出所有 API 版本
kubectl get --raw /apis | jq '.groups[].name'
# 查看特定 API 组
kubectl get --raw /apis/apps/v1 | jq .
# 列出所有可用资源
kubectl get --raw /api/v1 | jq '.resources[].name'
# OpenAPI 规范
kubectl get --raw /openapi/v2 | jq . > openapi.json
# 版本信息
kubectl get --raw /version | jq .
# 健康检查
kubectl get --raw /healthz
kubectl get --raw /livez
kubectl get --raw /readyz
# API Server 标志
kubectl get --raw /debug/flags/v
# Metrics
kubectl get --raw /metrics
# 检查当前用户权限
kubectl get --raw /apis/authorization.k8s.io/v1/selfsubjectaccessreviews \
-X POST \
-d '{
"apiVersion": "authorization.k8s.io/v1",
"kind": "SelfSubjectAccessReview",
"spec": {
"resourceAttributes": {
"namespace": "default",
"verb": "get",
"resource": "pods"
}
}
}'
当 kubectl --raw 不可用或语法复杂时,可以使用 proxy 方式:
# 启动代理
kubectl proxy --port=8001 &
# 使用 curl 访问
curl http://localhost:8001/api/v1/nodes | jq .
# GET 请求
curl http://localhost:8001/api/v1/namespaces/default/pods
# POST 请求
curl -X POST \
-H "Content-Type: application/json" \
-d @pod.json \
http://localhost:8001/api/v1/namespaces/default/pods
# PUT 请求
curl -X PUT \
-H "Content-Type: application/json" \
-d @node.json \
http://localhost:8001/api/v1/nodes/node-name/status
# DELETE 请求
curl -X DELETE \
http://localhost:8001/api/v1/namespaces/default/pods/pod-name
# 停止代理
pkill -f "kubectl proxy"
# 问题:Mutating Webhook 拦截标签修改
# 解决:直接通过 API 修改
# 1. 获取节点
kubectl get --raw /api/v1/nodes/node-name > node.json
# 2. 使用 jq 添加标签
jq '.metadata.labels["custom-label"] = "custom-value"' node.json > node-updated.json
# 3. 替换节点
kubectl replace --raw /api/v1/nodes/node-name -f node-updated.json
# 问题:资源因 finalizer 无法删除
# 解决:直接清空 finalizers
# 1. 获取资源
kubectl get --raw /api/v1/namespaces/stuck-namespace > ns.json
# 2. 清空 finalizers
jq '.spec.finalizers = []' ns.json > ns-clean.json
# 3. 更新
kubectl replace --raw /api/v1/namespaces/stuck-namespace/finalize -f ns-clean.json
#!/bin/bash
# 批量检查节点状态
for node in $(kubectl get nodes -o name | cut -d/ -f2); do
echo "=== Node: $node ==="
kubectl get --raw /api/v1/nodes/$node/status | \
jq -r '.status.conditions[] | select(.type=="Ready") |
"Status: \(.status), Reason: \(.reason)"'
done
#!/bin/bash
# 测试 API Server 响应时间
echo "Testing API Server performance..."
for i in {1..10}; do
time kubectl get --raw /api/v1/nodes > /dev/null 2>&1
done
#!/bin/bash
# 导出命名空间的所有资源
NAMESPACE="default"
OUTPUT_DIR="./k8s-backup"
mkdir -p $OUTPUT_DIR
# 导出 Pods
kubectl get --raw /api/v1/namespaces/$NAMESPACE/pods | \
jq . > $OUTPUT_DIR/pods.json
# 导出 Services
kubectl get --raw /api/v1/namespaces/$NAMESPACE/services | \
jq . > $OUTPUT_DIR/services.json
# 导出 Deployments
kubectl get --raw /apis/apps/v1/namespaces/$NAMESPACE/deployments | \
jq . > $OUTPUT_DIR/deployments.json
echo "Backup completed in $OUTPUT_DIR"
# 需要相应的 RBAC 权限
# 检查权限
kubectl auth can-i get nodes
kubectl auth can-i update nodes
# 更新时可能遇到冲突
# Error: the object has been modified; please apply your changes to the latest version
# 解决:重新获取最新版本
kubectl get --raw /api/v1/nodes/node-name > node-latest.json
# 重新修改并更新
# 使用 jq 验证 JSON 格式
cat resource.json | jq . > /dev/null
# 如果有错误会提示
# 在修改前务必备份
kubectl get --raw /api/v1/nodes/node-name > node-backup-$(date +%Y%m%d).json
# 先用 GET 查看,确认无误后再 PUT/PATCH
kubectl get --raw /api/v1/nodes/node-name | jq .
kubectl get --raw /api/v1/nodes
kubectl create --raw /api/v1/namespaces/default/pods -f pod.json
kubectl replace --raw /api/v1/nodes/node-name -f node.json
kubectl patch --raw /api/v1/nodes/node-name --type=merge -p '{...}'
kubectl delete --raw /api/v1/namespaces/default/pods/pod-name
# 使用 kubectl proxy
kubectl proxy --port=8001 &
curl http://localhost:8001/api/v1/nodes
# 增加日志级别
kubectl get --raw /api/v1/nodes -v=8
# 只查看节点名称
kubectl get --raw /api/v1/nodes | jq '.items[].metadata.name'
# 查看 Pod 状态
kubectl get --raw /api/v1/namespaces/default/pods | \
jq '.items[] | {name: .metadata.name, status: .status.phase}'
# 转换时间格式
kubectl get --raw /api/v1/nodes/node-name | \
jq '.metadata.creationTimestamp | fromdate | strftime("%Y-%m-%d %H:%M:%S")'
kubectl --raw 是 Kubernetes 的"瑞士军刀",提供了:
✅ 直接访问 API - 绕过客户端限制
✅ 调试工具 - 排查 kubectl 和 API Server 问题
✅ 应急修复 - 处理 Webhook 和控制器导致的问题
✅ 性能测试 - 直接测试 API Server
✅ 学习工具 - 理解 Kubernetes API 结构
⚠️ 使用场景: 作为最后的调试和修复手段
⚠️ 不推荐: 日常操作应使用标准 kubectl 命令
⚠️ 需谨慎: 直接操作可能破坏资源状态
2025-11-03 23:14:51
Claude Sonnet 4.5 协助编写。
在日常的系统管理和磁盘空间清理工作中,我们经常需要分析磁盘使用情况。本文将对比四个常用的磁盘使用分析工具:传统的 du、经典的交互式工具 ncdu、现代化的 gdu 和 dust。
du 是 Unix/Linux 系统自带的经典磁盘使用分析工具,已经存在了几十年。它是最基础、最通用的选择。
ncdu 是基于 ncurses 库的磁盘使用分析工具,提供了简洁的交互式文本界面。它是最早流行的交互式磁盘分析工具之一。
gdu 是用 Go 语言编写的现代化磁盘分析工具,提供了交互式界面和更快的扫描速度。
dust 是用 Rust 编写的磁盘使用分析工具,以更直观的可视化输出为特色。
| 特性 | du | ncdu | gdu | dust |
|---|---|---|---|---|
| 交互式界面 | ❌ | ✅ | ✅ | ❌ |
| 扫描速度 | 慢 | 中等 | 快 | 中等 |
| 可视化输出 | 基础 | 中等 | 强大 | 优秀 |
| 系统自带 | ✅ | ❌ | ❌ | ❌ |
| 内存占用 | 低 | 中 | 中 | 低 |
| 删除文件功能 | ❌ | ✅ | ✅ | ❌ |
| 编程语言 | C | C | Go | Rust |
| 易用性 | 中 | 高 | 高 | 高 |
# 显示当前目录大小
du -sh
# 显示所有子目录大小并排序
du -h --max-depth=1 | sort -hr
# 显示最大的10个目录
du -h | sort -rh | head -10
优点:
缺点:
# 安装
# Debian/Ubuntu
sudo apt install ncdu
# macOS
brew install ncdu
# RHEL/CentOS
sudo yum install ncdu
# 分析当前目录
ncdu
# 分析指定目录
ncdu /path/to/directory
# 扫描时排除某些目录
ncdu --exclude /path/to/exclude
# 导出结果到文件(可在其他机器上查看)
ncdu -o result.json
ncdu -f result.json # 读取导出的文件
交互式操作:
↑↓ 或 j/k: 上下移动→ 或 Enter: 进入目录←: 返回上级目录d: 删除选中的文件/目录g: 显示百分比/图形条n: 按名称排序s: 按大小排序q: 退出优点:
缺点:
# 安装
# macOS
brew install gdu
# Linux
curl -L https://github.com/dundee/gdu/releases/latest/download/gdu_linux_amd64.tgz | tar xz
sudo mv gdu /usr/local/bin/
# 分析当前目录
gdu
# 分析指定目录
gdu /path/to/directory
# 非交互模式
gdu -n /path/to/directory
优点:
缺点:
# 安装
# macOS
brew install dust
# Linux
cargo install du-dust
# 基本使用
dust
# 分析指定目录
dust /path/to/directory
# 显示更多层级
dust -d 3
# 只显示目录
dust -t
优点:
缺点:
在一个包含 50GB 数据、约 100,000 个文件的目录上测试:
注:实际性能取决于硬件配置、文件系统类型和文件数量。ncdu 的优势在于扫描后的交互浏览非常流畅。
四个工具各有千秋:
这四个工具代表了磁盘分析工具的演进过程:
对于日常使用,我的建议是:
du 用于脚本和快速检查ncdu 作为通用的交互式工具(服务器友好)gdu 用于深入的磁盘分析(个人工作站)dust 用于快速浏览和可视化如果只能选一个额外工具:
ncdu(稳定、轻量、可靠)gdu(快速、现代、强大)dust(直观、美观、高效)根据具体需求选择合适的工具,甚至可以将它们组合使用,发挥各自的优势。
2025-11-03 23:14:00
2025 年主机厂商黑五活动集合,持续更新。
2025 年黑色星期五为 11月28日。
内容收集自 Telegram、NodeSeek、LowEndTalk 等途径,仅做信息汇集,不做购买建议。
链接默认无 aff
2025-11-24
2025-11-07
2025-11-05
2025-11-04
2025-11-03
2025-11-03
使用优惠码 BF2025,即可享受洛杉矶 CN2 GIA - CAMD/CSSD 套餐 35% 持续折扣
探索CSSD NVMe VPS方案:https://bill.hostdare.com/store/premium-china-optimized-nvme-kvm。
探索CAMD VPS套餐:https://bill.hostdare.com/store/cheap-amd-nvme-kvm-vps-la-usa
使用优惠码 BFBIRD25 即可享受 日本JSSD/NKVM 套餐 25% 持续折扣
探索JSSD NVMe VPS套餐:https://bill.hostdare.com/store/premium-japan-kvm-vps
探索NKVM NVMe VPS套餐请点击:https://bill.hostdare.com/store/cheap-nvme-kvm-vps-japan
使用优惠码 BF2025SALE 即可享受 65% 持续折扣,订阅 经济型洛杉矶 NVMe/HDD 方案
探索 NVMe SSD VPS 方案:https://bill.hostdare.com/store/los-angeles-ssd-kvm
探索AMD VPS套餐:https://bill.hostdare.com/store/cheap-amd-nvme-kvm-vps-la-usa
使用优惠码 LOYAL25 即可享受 保加利亚 NVMe SSD 套餐 25% 持续折扣
探索保加利亚 NVMe 套餐:https://bill.hostdare.com/store/bg-ssd-kvm
通过DeepL.com(免费版)翻译
优惠码 BF2025SALE 可享 65% 折扣,并获赠 免费内存及带宽升级
ASSD0
1 vCPU Core ( AMD EPYC )
10 GB NVMe SSD Storage
768 MB RAM+768 MB RAM*
500 GB + 500 GB Bandwidth/month*
200 Mbps public port
1 IPv4, /64 IPv6 Address
KVM Virtualization
$9.80/year
Order Now
ASSD1
1 vCPU Core ( AMD EPYC )
25 GB NVMe SSD Storage
1 GB RAM+1GB RAM*
1000 GB +1000 GB Bandwidth/month*
500 Mbps public port
1 IPv4, /64 IPv6 Address
KVM Virtualization
$14.70/year
Order Now
ASSD2
2 vCPU Cores ( AMD EPYC )
50 GB NVMe SSD Storage
2 GB RAM+ 2GB RAM*
2000 GB+2000GB Bandwidth/month*
500 Mbps public port
1 IPv4, /64 IPv6 Address
KVM Virtualization
$26.25/year
Order Now
优惠码 BF2025 可享 35% 折扣,并免费升级内存及带宽/端口。
CSSD0
1 vCPU Core
10 GB SSD NVMe Storage
768 MB + 768 MB RAM*
250 GB +250 GB Bandwidth/month*
100 Mbps CN2,GIA,CU,CM Network*
1 dedicated IPv4
Price: $23.39/year
Order Now
CSSD1
1 vCPU Cores
25 GB SSD NVMe Storage
1 GB + 1 GB RAM*
600 GB +600 GB Bandwidth/month*
100 Mbps CN2,GIA,CU,CM Network*
1 dedicated IPv4
Price: $33.59/year
Order Now
CSSD2
2 vCPU Cores
50 GB SSD NVMe Storage
2 GB +2 GB RAM*
1000 GB +1000 GB Bandwidth/month*
100 Mbps CN2,GIA,CU,CM Network*
1 dedicated IPv4
Price: $51.59/year
Order Now
促销条款与细则
凡订购任何ASSD/SSD/CSSD/CAMD虚拟专用服务器并选择年度付款方案,即可获赠双倍内存及带宽/端口升级。本优惠仅适用于年度或更长期限付款方案。
所有非托管VPS服务均包含:
全天候高效技术支持
即时部署服务
自定义反向DNS
VNC远程控制台
企业级服务器硬件技术
Virtualizor控制面板(支持启动/重启/关机/重装)
高端带宽
自有硬件及IP地址(运营自2016年)
99.9%运行时间保障
更多服务!
数据中心测试IP及下载文件: Test File
2025-11-04
限时抢购提醒 ⚡
纽伦堡地区限时特惠:RS 1000 G12 Pro 套餐,SSD 容量翻倍,最低仅需签约3个月!
🔥 抓紧时间——优惠仅限今日(2025-11-04)下午5点前有效!
2025-11-04
🛍 OVH KS-LE sale is now live on the website:
🖥️ OVH 服务器查询: https://kele.ge/ovh.html
2025-11-19
OVH黑五页面正式上线
https://www.ovhcloud.com/en-ie/black-friday/
美区OVH促销上线
https://us.ovhcloud.com/deals/
2025-11-04
双11 · 促销活动
活动一:
折扣码“11.11”:新开弹性云7折;新开经典云(特价机除外)8折。
折扣码“jian100”:新开物理服务器优惠100元。
活动二:
11月5日-11月11日,单笔充值每满11元送1元。
活动三:
11月5日-11月11日,幸运大转盘每日抽取5折码,流量,余额等奖品。
活动四:
两款物理服务器预售,11月4日开始逐步交付
预售地址:https://ds.dogyun.com/server/preorder
2025-11-04
ZgoCloud 2025双十一活动
一:洛杉矶非优化线路,解锁还行
1C / 1G / 20G SSD / 2T月流量 / 15刀年付
https://clients.zgovps.com/?cmd=cart&action=add&id=93
二:洛杉矶国内优化线路,9929 + CMIN2线路
1C / 768MB / 15G SSD / 600G月流量 / 30刀年付
https://clients.zgovps.com/?cmd=cart&action=add&id=39
支持3天内流量不超过10G,全额退款(套餐一不支持以网络原因退款)
2025-11-05
DMIT促销款补货
联通移动的建议上DMIT.LAX.EB ,电信上DMIT.LAX.Pro
DMIT.LAX.Pro 马里布 补货
MALIBU 1TB@1Gbps=49.9USD/yr
https://www.dmit.io/aff.php?pid=186
三网 CTG GIA(aka CN2 GIA) 回程
电信 CTG GIA 去程
联通 CUG VIP(aka 9929) 去程
移动 CMIN2 去程
另IPv6双程三网优化已是最佳路由
DMIT.LAX.EB WEE 补货
WEE 1TB@1Gbps=39.9USD/yr
https://www.dmit.io/aff.php?pid=188
联通 CUG VIP(Aka 9929) 去程 / 回程
电信 CN2 GIA 去程 CUG VIP 回程
移动 CMIN2 去程 / 回程
另IPv6双程三网优化已是最佳路由
2025-11-05
📢 YINNET 限時優惠|六折促銷代碼限量 300 個
尊敬的用戶您好,
為回饋新老客戶的支持,YINNET 現推出限時促銷活動:
✅ 全場 VPS 產品 6 折優惠
✅ 限量 300 組優惠代碼:E7F1RHKT1I
✅ 每位用戶、每張訂單限使用一次
✅ 售完即止,先用先得
👉 登入官網立即使用:
https://www.yin-net.com/aff.php?aff=27&gocar=true
若您近期有伺服器、跨境應用部署、遊戲伺服器、跨國網站、加速業務等場景需求,這將是最划算的入手機會。
如有產品選型或技術疑問,歡迎隨時聯繫我們的客服團隊,我們將竭誠協助。
感謝您一直以來的信任與支持!
YINNET 團隊
2025-11-05
🎉 YXVM · 双十一活动预热 🎉
🚀 新品上架 · 超值独立服务器 即刻开售!
双十一即将到来啦!YXVM 为您带来 性价比爆表的日本独立服务器新品
更稳网络、更便宜价格,一站满足建站、中转、数据库等多种需求!
采用超微 MS5039 ,所有服务器均支持 IPMI
✅ 新品亮点
👉 立即订购
👉
开通日期 11.11
请注意这款产品有14个C段,IP地址为随机分配/29,您拿到的机器与测试IP可能不在一个C段。
我们不支持更换指定地址请求。
2025-11-05
✨【CloudIPLC-双11秒杀】
香港CMI-Mini(三网回国优化),限时双倍升级+限时折扣!
限时折扣:仅需299元/年!
限时升级:
vCPU:1H->2H
内存:1GB->2GB
存储:10G->20G SSD
流量:300G->600G
带宽:30M->60M
活动时间:即日起-11/11
👉抢购链接(每ID限购1个):
https://www.cloudiplc.com/cart.php?a=add&pid=157
请注意!此款是个人轻量使用,流量固定,不可变更!
2025-11-07
【CloudIPLC 双11+9周年庆】
🔥 沪日IPLC-NAT秒杀款,限时返场!
返场时间:11/7-11/9 【数量有限,售完截止】
配置:1vCPU/512M/5G-SSD/50M峰值带宽
流量&价格(下单后流量不可变更):
200G方案:779/半年,1299/整年
1000G方案:4559/半年,7599/整年
👉🏻 抢购链接:
https://www.cloudiplc.com/aff.php?pid=125
🌍 线路说明:
上海入口采用更优秀的BGP多线,确保不同运营商的低延时快速访问。东京出口为NTT+BBIX
⚠️ 由于涉及内地入口,务必合法合规。严谨高风险应用例如XUI面板,因此不建议新手购买
2025-11-07
🌟 JP.TYO-Cs.1C0G-CM
1 vCPU (EPYC) · 512MB RAM · 20GB SSD
📶 300Mbps · 流量 1000GB(大陆优化)
🌐 IPv4 ×1(大陆优化)
🌐 IPv6 /56(国际)
💰 双十一特惠:年付 €48.00 🎁
🌟 JP.TYO-Cs.1C1G-CM
1 vCPU (EPYC) · 1GB RAM · 40GB SSD
📶 1000Mbps · 流量 2000GB(大陆优化)
🌐 IPv4 ×1(大陆优化)
🌐 IPv6 /56(国际)
💰 双十一特惠:年付 €84.00 🎁
🌟 HK.HKG-Cs.1C0G-CM
1 vCPU (EPYC) · 512MB RAM · 20GB SSD
📶 300Mbps · 流量 1000GB(大陆优化)
🌐 IPv4 ×1(大陆优化)
🌐 IPv6 /56(国际)
💰 双十一特惠:年付 €48.00 🎁
🌟 HK.HKG-Cs.1C1G-CM
1 vCPU (EPYC) · 1GB RAM · 40GB SSD
📶 1000Mbps · 流量 2000GB(大陆优化)
🌐 IPv4 ×1(大陆优化)
🌐 IPv6 /56(国际)
💰 双十一特惠:年付 €84.00 🎁
Test IP:
日本 46.3.43.1
香港 46.3.39.1
🔗 立即订购 👉 https://cloud.isif.net/order/ecs - Special Products
也有常规月付款可供选购
2025-11-07
11.11 VPS offers, now available in multiple locations - New York, Los Angeles, Dallas, Chicago, Toronto
1GB KVM VPS
1GB RAM
1vCPU
30GB SSD
40TB @ 1Gbps
1 x IPv4
$11.11/yr
https://cloud.colocrossing.com/aff.php?pid=112
2GB KVM VPS
2GB RAM
2vCPU
40GB SSD
40TB @ 1Gbps
1 x IPv4
$16.16/yr
https://cloud.colocrossing.com/aff.php?pid=114
4GB KVM VPS
4GB RAM
3vCPU
60GB SSD
40TB @ 1Gbps
1 x IPv4
$22.22/yr
https://cloud.colocrossing.com/aff.php?pid=126
8GB KVM VPS
8GB RAM
4vCPU
80GB SSD
40TB @ 1Gbps
1 x IPv4
$44.44/yr
https://cloud.colocrossing.com/aff.php?pid=116
2025-11-18
https://www.colocrossing.com/black-friday
Refs: https://lowendtalk.com/discussion/211721/colocrossings-black-friday-sale-vps-from-1-97-mo-dedicated-servers-from-147-96-yr-more
2025-11-18
2025黑色星期五VPS促销套餐来喽!
========
1GB 套餐
========
1 GB 内存
1 CPU 核心
25 GB SSD 存储
2000 GB 月流量
1 Gbps 带宽
1个 IPv4 地址
$10.60 /年 (续费同价)
可选机房: 多机房可选
购买链接: https://my.racknerd.com/cart.php?a=add&pid=923
========
2.5GB 套餐
========
2.5 GB 内存
2 CPU 核心
45 GB SSD 存储
3000 GB 月流量
1 Gbps 带宽
1个 IPv4 地址
$18.66 /年 (续费同价)
可选机房: 多机房可选
购买链接: https://my.racknerd.com/cart.php?a=add&pid=924
========
4GB 套餐
========
4 GB 内存
3 CPU 核心
65 GB SSD 存储
6500 GB 月流量
1 Gbps 带宽
1个 IPv4 地址
$29.98 /年 (续费同价)
可选机房: 多机房可选
购买链接: https://my.racknerd.com/cart.php?a=add&pid=925
========
6GB 套餐
========
6 GB 内存
5 CPU 核心
100 GB SSD 存储
10,000 GB 月流量
1 Gbps 带宽
1个 IPv4 地址
$44.98 /年 (续费同价)
可选机房: 多机房可选
购买链接: https://my.racknerd.com/cart.php?a=add&pid=926
========
8GB 套餐
========
8 GB 内存
6 CPU 核心
150 GB SSD 存储
20,000 GB 月流量
1 Gbps 带宽
1个 IPv4 地址
$62.49 /年 (续费同价)
可选机房: 多机房可选
购买链接: https://my.racknerd.com/cart.php?a=add&pid=927
2025-11-20
🔥🔥 Lycheen 荔枝云 | 黑五促销
全年最低价,提供多地区 DNS 解锁,可随时订购流量包。
黑五特价产品
🇭🇰 HKv2 Lite Nano (移动快乐机):
1C / 512M / 5G / 768G流量
价格:¥7.50/月
🛒 [购买链接] (https://www.lycheen.com/store/2025-black-friday/hkv2-lite-nano-bf25)
🇺🇸 US-SLC Lite Tall (超级性价比):
1C / 1G / 10G / 2T流量
价格:🔥 ¥88/年
🛒 [购买链接] (https://www.lycheen.com/store/2025-black-friday/us-slc-lite-v1-1g-bf25)
🇺🇸 US-SLC Lite Grand (美国大流量):
1C / 2G / 15G / 4T流量
价格:¥13.90/月
🛒 [购买链接] (https://www.lycheen.com/store/2025-black-friday/us-slc-lite-v1-grand-bf25)
🇪🇺 欧洲精品 DE/UK (中国优化,限量促销):
1C / 512M / 5G / 300G流量
价格:¥10.00/月
🇩🇪 德国 BGP [购买链接] (https://www.lycheen.com/store/2025-black-friday/de-fra-bgp-pro-mini-bf25)
🇬🇧 英国 BGP [购买链接] (https://www.lycheen.com/store/2025-black-friday/uk-lon-bgp-pro-mini-bf25)
---
📂 活动主会场:
https://www.lycheen.com/store/2025-black-friday/
🏷 全场折扣:
常规产品(不含促销/VDS/WARP)循环 7 折
优惠码: BF2025_30OFF
官网: https://www.lycheen.com/store/
活动时间:即日起 到11月29日
支持加购 IP、建立 BGP Session、BYOIP/ASN 广播。
如有需求请提交工单咨询。
https://takehost.biz/manage/order/yearly-vps/1gb-yearly
✓ 1x CPU
✓ AMD EPYC 7763
✓ 1 GB RAM
✓ 50 GB NVMe SSD storage
✓ 50GBPS Port
7.90 euro a year
35 in stock
CrownCloud 荷兰/德国 EPYC主机优惠,老牌商家
Plan1:
- 2v CPU(EPYC 7763)
- 6G RAM
- 60G SSD
- 3TB/10Gbps
- 1x Snapshot Slot
$5/月,$50/年
荷兰 (https://crowncloud.net/clients/index.php?rp=/store/specials/ams-6g-60g-epyc-10g-1s) / 德国 (https://crowncloud.net/clients/index.php?rp=/store/specials/fra-6g-60g-epyc-10g-1s)
Plan2:
- 4v CPU(EPYC 7763)
- 8G RAM
- 80G SSD
- 4TB/10Gbps
- 1x Snapshot Slot
$7/月,$70/年
荷兰 (https://crowncloud.net/clients/index.php?rp=/store/specials/ams-8g-80g-epyc-10g-1s) / 德国 (https://crowncloud.net/clients/index.php?rp=/store/specials/fra-8g-80g-epyc-10g-1s)
· 支持Windows(需自备许可证)
· 25端口可通过工单申请
· 可开启CPU直通,可切换VirtIO和e1000网卡
· rDNS支持
· 免费自定义ISO
测试IP:
德国:Test IPv4: 195.88.191.1 / Test IPv6: 2a0a:51c0:0:1f:291d::1
荷兰:Test IPv4: 2.58.15.20 / Test IPv6: 2a07:efc0:1001:1265::1 / Test File: https://nl2.lg.crowncloud.net/1gb.file
2025-11-23
📢 YINNET 黑色星期五限時活動|全場 VPS 五折狂歡
尊敬的用戶您好,
為迎接黑色星期五購物季,回饋廣大用戶對 YINNET 的長期支持,我們特別推出年度重磅優惠活動:
✅ 全場 VPS 產品 5 折優惠
✅ 黑五專屬促銷代碼:BF50YINNET
✅ 每位用戶、每張訂單限使用一次
✅ 活動限時開放,售完即止,先到先得
⏰ 活動時間:即日起至黑色星期五當晚 24:00 截止
👉 登入官網於結算頁輸入優惠代碼即可享受五折優惠。
如您對產品選型、配置需求或部署方案有任何疑問,歡迎隨時聯繫客服團隊,我們將為您提供專業協助。
感謝您一直以來的支持與信任,
祝您黑五購物愉快!
YINNET 團隊 敬上
2025-11-23
黑五促销上线!HiNet 台湾家宽限时特价
📌 NAT 机型(¥99/年)
CPU:2
RAM:512MB
SSD:5GB
网络端口:300Mbps
月流量:512GB
IPv4 NAT & IPv6 × 1
📌 独享 IP(¥188/月)
CPU:4
RAM:2048MB
SSD:15GB
网络端口:500Mbps
月流量:10240GB
IPv4 × 1 + IPv6 × 1
🛒 下单地址:https://taphip.com/aff.php?gid=7
✨ 24H自动切换IP
Parallels® Desktop for Mac 标准版和 Pro 版一年订阅官方打 5 折:
https://www.parallels.com/products/desktop/
Refs: https://www.appinn.com/parallels-desktop-26/
黑色星期五/网络星期一 促销 新的GoodSync高级订阅可享40%优惠截至12月1日。
https://www.goodsync.com/php/pums/rfprepay.php?lang=cn
UptimeRobot 黑五7折优惠
https://app.uptimerobot.com/billing/pricing/?coupon=BF25_30