如何在k9s中列出kubernetes服务?

Mat*_*s M 7 kubernetes

我可以列出k9s中的kubernetes服务吗?

默认情况下,仅显示 pod 和部署。

这是可能的,如图在这里,我使用当前版本k9s 0.7.11

Mat*_*s M 18

它记录在这里:

键绑定

K9s 使用别名来导航大多数 K8s 资源。

:alias 查看一个 Kubernetes 资源别名

所以你必须输入:

:svc
Run Code Online (Sandbox Code Playgroud)

编辑:热键

您还可以配置自定义热键。这是我的配置文件 ~/.k9s/hotkey.yml

hotKey:
  f1:
    shortCut: F1
    description: View pods
    command: pods
  f2:
    shortCut: F2
    description: View deployments
    command: dp
  f3:
    shortCut: F3
    description: View statefulsets
    command: sts
  f4:
    shortCut: F4
    description: View services
    command: service
  f5:
    shortCut: F5
    description: View ingresses
    command: ingress
Run Code Online (Sandbox Code Playgroud)

  • 谢谢!那应该更容易找到。 (3认同)