RBAC(Role Based Access Control) RBACはクラスタでどういった操作をできるかRoleで設定し、ユーザーにRoleをRoleBindingで紐づけることで権限を与える。 RBACには4種類のリソースがある Role RoleBinding ClusterRole ClusterRoleBinding Role.RoleBindingとClusterRole.ClusterRoleBinding RoleとRoleBindingはnamespaceレベルで設定ができるリソース ClusterRoleとClusterRoleBindingはクラスタレベルで設定ができるリソース 下記CLIでNAMESPACEDがtrueかfalseになっているかでnamespaceレベルかクラスタレベルかが他のリソースに関してもわかる。 true=namespceレベル false
![kubernetes RBACについて](https://cdn-ak-scissors.b.st-hatena.com/image/square/6b033b666da9d171a71f42fe7c30826d515a9fa0/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--_eeqEme7--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3Akubernetes%252520RBAC%2525E3%252581%2525AB%2525E3%252581%2525A4%2525E3%252581%252584%2525E3%252581%2525A6%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Ageek%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2QzYjJlYTIzNDguanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)