Listing all resources in a namespace

前端 未结 9 1283
半阙折子戏
半阙折子戏 2020-12-07 20:24

I would like to see all resources in a namespace.

Doing kubectl get all will, despite of the name, not list things like services and ingresses.

9条回答
  •  暖寄归人
    2020-12-07 20:49

    A Powershell implementation of rcorre's answer would look like

    kubectl api-resources --verbs=list --namespaced -o name | `
    %{ kubectl get $_ --show-kind --ignore-not-found -l 

提交回复
热议问题