Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list kubernetes services in k9s?

Tags:

kubernetes

Ho can I list the kubernetes services in k9s?

By default only the pods and deployments are shown.

It's possible as shown here and I'm using the current k9s version 0.7.11

like image 609
Matthias M Avatar asked Jun 30 '19 10:06

Matthias M


1 Answers

It's documented here:

Key Bindings

K9s uses aliases to navigate most K8s resources.

:alias View a Kubernetes resource aliases

So you have to type:

:svc

EDIT: Hotkeys

You can also configure custom hotkeys. Here's my config file ~/.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
like image 167
Matthias M Avatar answered Sep 27 '22 01:09

Matthias M