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

后端 未结 8 1678
庸人自扰
庸人自扰 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条回答
  •  Happy的楠姐
    2020-12-31 00:02

    I wrote a tiny Go utility for this exact purpose. Generates a complete RBAC role with every possible resource & sub-resource on the cluster. You can then prune that back to fit your role's use case.

    https://github.com/coopernetes/kube-role-gen

提交回复
热议问题