lens
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLens Desktop
Lens Desktop
Lens is a graphical IDE for Kubernetes. 2025 adds Lens Prism (Agent Mode) to reason about cluster issues.
Lens 是一款面向Kubernetes的图形化IDE。2025年新增了**Lens Prism(Agent模式)**功能,可用于分析集群问题。
When to Use
使用场景
- Visualization: Accessing Prometheus metrics (built-in) alongside Pods.
- Multi-Cluster: Managing 10+ clusters with easy context switching.
- Helm: Visual Helm chart management (upgrade/rollback).
- 可视化:在查看Pods的同时,访问内置的Prometheus指标。
- 多集群管理:轻松管理10个以上集群,支持便捷的上下文切换。
- Helm管理:可视化管理Helm图表(升级/回滚)。
Core Concepts
核心概念
Hotbar
快捷工具栏(Hotbar)
Quick access to different clusters.
快速访问不同集群。
Metrics Integration
指标集成
Detects Prometheus automatically and adds graphs to Pod/Node views.
自动检测Prometheus,并在Pod/Node视图中添加图表。
Terminal
终端
Opens a terminal with context pre-set to the active cluster.
kubectl打开已预设好当前活跃集群kubectl上下文的终端。
Best Practices (2025)
2025年最佳实践
Do:
- Use Lens Prism: Ask "Why is this pod pending?" to get AI diagnosis.
- Use Port Forwarding: The UI manages port forwards visually.
- Share Catalogs: Sync cluster lists with team members.
Don't:
- Don't ignore RBAC: Lens respects your kubeconfig permissions.
建议:
- 使用Lens Prism:提问“为什么这个pod处于pending状态?”即可获得AI诊断结果。
- 使用端口转发:通过UI可视化管理端口转发。
- 共享目录:与团队成员同步集群列表。
不建议:
- 不要忽略RBAC权限:Lens会严格遵循你的kubeconfig权限设置。