title: Kubernetes authorization via local groups
body: <p>everyone.</p>
  
  <p>I'm wondering is there an option to authorize users to access kubernetes objects via local groups?</p>
  
  <p>Like currently I'm doing this:</p>
  
  <pre><code>kind: RoleBinding
  apiVersion: rbac.authorization.k8s.io/v1
  metadata:
    name: example-rolebinding
    namespace: mynamespace
  subjects:
  - kind: User
    name: example-user1 # member of local unix group "authorized"
    apiGroup: rbac.authorization.k8s.io
  - kind: User
    name: example-user2 # member of local unix group "authorized"
    apiGroup: rbac.authorization.k8s.io
  - kind: User
    name: example-user3 # member of local unix group "authorized"
    apiGroup: rbac.authorization.k8s.io
  roleRef:
    kind: Role
    name: example-role
    apiGroup: rbac.authorization.k8s.io
  </code></pre>
  
  <p>And I am trying to do it this way:</p>
  
  <pre><code>kind: RoleBinding
  apiVersion: rbac.authorization.k8s.io/v1
  metadata:
    name: example-rolebinding
    namespace: mynamespace
  subjects:
  - kind: Group
    name: authorized
    apiGroup: rbac.authorization.k8s.io
  roleRef:
    kind: Role
    name: example-role
    apiGroup: rbac.authorization.k8s.io
  </code></pre>
  
  <p>Is there any option? Or I want too much from K8S and need to develop something on my own?</p>
  
  <p>Thanks</p>