Kubernetes RBAC Role & ClusterRoleBinding YAML ジェネレーター
APIグループ、リソース操作(verbs)、Subject(ServiceAccount/User/Group)を指定して、Kubernetes RBACのRole、ClusterRole、RoleBinding、ClusterRoleBindingマニフェストを迅速に設計・生成します。
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: pod-log-reader
namespace: staging
labels:
app.kubernetes.io/part-of: developer-access
env: staging
rules:
- apiGroups:
- ""
resources:
- "pods"
- "pods/log"
- "events"
verbs:
- "get"
- "list"
- "watch"
- apiGroups:
- "apps"
resources:
- "deployments"
- "replicasets"
verbs:
- "get"
- "list"
- "watch"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: developer-log-reader-binding
namespace: staging
labels:
app.kubernetes.io/part-of: developer-access
env: staging
subjects:
- kind: Group
name: frontend-developers
apiGroup: rbac.authorization.k8s.io
- kind: User
name: [email protected]
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: Role
name: pod-log-reader
apiGroup: rbac.authorization.k8s.iorbac.authorization.k8s.io/v1 仕様標準
名前空間スコープの Role およびクラスター全体の ClusterRole に対する rbac.authorization.k8s.io/v1 仕様標準に厳格に準拠。
完全ブラウザ内処理・ゼロ送信
すべての RBAC ポリシー、サービスアカウント、クラスター権限は外部送信なしでブラウザサンドボックス内で完結します。
最小権限原則と本番環境対応
ワイルドカードや権限昇格のリスクを検出する最小権限セキュリティ監査を備えた本番品質のマニフェストを生成。