1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

kubernetes クラスターが role-based access control(RBAC)で動作していることを確認する方法

1
Posted at

前置き

例えばEKSでContainer Insightsを使用したい場合、 RBACが有効になっていなければならないらしいです。

前提条件の確認
https://docs.aws.amazon.com/ja_jp/AmazonCloudWatch/latest/monitoring/Container-Insights-prerequisites.html

ところがそこからリンクされている確認方法を見てもなにがなにやらさっぱりわかりません。
ていうか、これはRBAC認証の説明であって、確認方法じゃないよ...。

Using RBAC Authorization
https://kubernetes.io/docs/reference/access-authn-authz/rbac/

なんやかんやでggった結果、解法を発見。もちStackoverflow。

方法

how to check whether RBAC is enabled, using kubectl
https://stackoverflow.com/questions/51238988/how-to-check-whether-rbac-is-enabled-using-kubectl

kubectl api-versions

結果に以下が含まれて入れば、有効になっているとのこと。

.rbac.authorization.k8s.io/v1

ネットを回遊しているとkubernetesまっさかりという感じですが、この程度の情報も日本語で見つからないとなると、現実はこれから...なんでしょうか。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?