no matches for kind "RoleBinding" in version "rbac.authroization.k8s.io/v1"

개요[ | ]

no matches for kind "RoleBinding" in version "rbac.authroization.k8s.io/v1"
Console
Copy
$ kubectl apply -f read-pods.yaml
error: resource mapping not found for name: "read-pods" namespace: "default" from "read-pods.yaml": no matches for kind "RoleBinding" in version "rbac.authroization.k8s.io/v1"
ensure CRDs are installed first
read-pods.yaml
yaml
Copy
apiVersion: rbac.authroization.k8s.io/v1
kind: RoleBinding
metadata:
  name: read-pods
  namespace: default
subjects:
- kind: User
  name: jane
  apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: Role
  name: pod-reader
  apiGroup: rbac.authorization.k8s.io
misspell "authroization" → "authorization"