Lens provides a handy Kubernetes dashboard, but some people prefer not to click around with their mouse any more than absolutely necessary, and would rather use keyboard shortcuts. Because of that, the community has been improving the ability to do that via keyboard shortcuts and a new Command Palette in Lens 4.1. We thought it might be handy to provide you with a quick list of the commands you have available.
Lens keyboard shortcuts
Lens provides several keyboard shortcuts, including:
- shift-command-A or shift-ctrl-A: Add cluster
- shift-command-E or shift-ctrl-E: Add extension
- shift-command-I or shift-ctrl-I: Open webtools sidebar
- shift-command-P or shift-ctrl-P: Open command palette
- shift-command-S or shift-ctrl-S: Cluster status
Command palette shortcuts
The command palette (
shift-command-P or
shift-ctrl-P) provides additional commands you can access by beginning to type and choosing what you want using the up and down arrows. These commands include:
- Cluster: Open terminal
- Cluster: View ConfigMaps
- Cluster: View CronJobs
- Cluster: View DaemonSetsCluster: View Deployments
- Cluster: View Endpoints
- Cluster: View Helm Charts
- Cluster: View Helm Releases
- Cluster: View HorizontalPodAutoscalers (HPA)
- Cluster: View Ingresses
- Cluster: View Jobs
- Cluster: View LimitRanges
- Cluster: View NetworkPolicies
- Cluster: View Nodes
- Cluster: View PodDisruptionBudgets
- Cluster: View Pods
- Cluster: View ResourceQuotas
- Cluster: View Secrets
- Cluster: View Services
- Cluster: View Settings
- Cluster: View StatefulSets
- Preferences: Open
- Workspace: Add workspace ...
- Workspace: Remove workspace ...
- Workspace: Switch to cluster ...
- Workspace: Switch to workspace ...
If you're looking for these shortcuts, you're probably already doing some serious work with Lens. We'd love to hear about what you're doing with it in the comments!