node-binding.yaml 742 B

12345678910111213141516171819202122232425
  1. apiVersion: rbac.authorization.k8s.io/v1
  2. kind: RoleBinding
  3. metadata:
  4. name: gce:podsecuritypolicy:nodes
  5. namespace: kube-system
  6. annotations:
  7. kubernetes.io/description: 'Allow nodes to create privileged pods. Should
  8. be used in combination with the NodeRestriction admission plugin to limit
  9. nodes to mirror pods bound to themselves.'
  10. labels:
  11. addonmanager.kubernetes.io/mode: Reconcile
  12. kubernetes.io/cluster-service: 'true'
  13. roleRef:
  14. apiGroup: rbac.authorization.k8s.io
  15. kind: ClusterRole
  16. name: gce:podsecuritypolicy:privileged
  17. subjects:
  18. - kind: Group
  19. apiGroup: rbac.authorization.k8s.io
  20. name: system:nodes
  21. - kind: User
  22. apiGroup: rbac.authorization.k8s.io
  23. # Legacy node ID
  24. name: kubelet