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

后端 未结 8 1632
庸人自扰
庸人自扰 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:48

    for kind in `kubectl api-resources | tail +2 | awk '{ print $1 }' | sort`; do kubectl explain $kind ; done | grep -e "KIND:" -e  "VERSION:" | awk '{print $2}' | paste -sd' \n'
    

提交回复
热议问题