Listing all resources in a namespace

前端 未结 9 1311
半阙折子戏
半阙折子戏 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:25

    It's not a 100% solution, but for me works the following

    kgetall='kubectl get namespace,replicaset,secret,nodes,job,daemonset,statefulset,ingress,configmap,pv,pvc,service,deployment,pod --all-namespaces'
    

    and just call

    kgetall
    

    But obviously I expected that behavior from

    kubectl get all --all-namespaces
    

    in the first place.

提交回复
热议问题