Advertisement
Guest User

Untitled

a guest
Mar 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. [root@centos-master ~]# cat rolebinding-deployment.yaml
  2. ---
  3. apiVersion: rbac.authorization.k8s.io/v1
  4. kind: RoleBinding
  5. metadata:
  6. name: deployment-manager-binding
  7. namespace: default
  8. roleRef:
  9. apiGroup: rbac.authorization.k8s.io
  10. kind: Role
  11. name: deployment-manager
  12. subjects:
  13. -
  14. apiGroup: rbac.authorization.k8s.io
  15. kind: User
  16. name: root
  17.  
  18. [root@centos-master ~]# kubectl create --validate=false -f rolebinding-deployment.json
  19. The RoleBinding "deployment-manager-binding" is invalid:
  20. * roleRef.kind: Unsupported value: "": supported values: "Role", "ClusterRole"
  21. * roleRef.name: Required value
  22. [root@centos-master ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement