Where can I get a list of Kubernetes API resources and subresources?

后端 未结 8 1633
庸人自扰
庸人自扰 2020-12-30 22:59

I am trying to configure Kubernetes RBAC in the least-permissive way possible and I want to scope my roles to specific resources and subresouces. I\'ve dug through the doc

8条回答
  •  说谎
    说谎 (楼主)
    2020-12-30 23:40

    If you are using kubectl krew plug-in, I will suggest using get-all. It can get almost 90% resources. included configmap, secret, endpoints, istio, etc

    And It have a great arg --since, you can use it to list out last x min created resources.

    example

    kubectl get-all --since 1d
    

提交回复
热议问题