쿠버네티스 RoleBinding

1 개요[ | ]

K8s 롤바인딩
쿠버네티스 RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: read-pods
  namespace: default
subjects:
- kind: User
  name: jane # "name"은 대소문자 구별이 있다
  apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: Role # Role 또는 ClusterRole이어야 한다
  name: pod-reader # 연결하려는 Role 또는 ClusterRole 이름과 매치되어야 한다
  apiGroup: rbac.authorization.k8s.io
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: rolebinding1
  namespace: namespace1
roleRef:
  kind: Role
  name: pod-reader
  apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
  name: serviceaccount1

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}