Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@centos-master ~]# cat rolebinding-deployment.yaml
- ---
- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: deployment-manager-binding
- namespace: default
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: deployment-manager
- subjects:
- -
- apiGroup: rbac.authorization.k8s.io
- kind: User
- name: root
- [root@centos-master ~]# kubectl create --validate=false -f rolebinding-deployment.json
- The RoleBinding "deployment-manager-binding" is invalid:
- * roleRef.kind: Unsupported value: "": supported values: "Role", "ClusterRole"
- * roleRef.name: Required value
- [root@centos-master ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement