<p>I have a google kubernetes engine cluster with multiple namespaces. Different applications are deployed on each of these namespaces. Is it possible to give a user complete access to a single namespace only?</p>

Keerthi hegde
<p>You can bind the user to the cluster-admin role using a Rolebinding in your namespace of choice. As specified in the <a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/#user-facing-roles" rel="nofollow noreferrer">documentation</a>, cluster-admin:</p>

<blockquote>
  <p>Allows super-user access to perform any action on any resource. When
  used in a ClusterRoleBinding, it gives full control over every
  resource in the cluster and in all namespaces. When used in a
  RoleBinding, it gives full control over every resource in the
  rolebinding's namespace, including the namespace itself.</p>
</blockquote>

<p>For example:</p>

<pre><code>kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: example
  namespace: yournamespace
subjects:
- kind: User
  name: example-user
  apiGroup: rbac.authorization.k8s.io
roleRef:
  kind: ClusterRole
  name: cluster-admin
  apiGroup: rbac.authorization.k8s.io
</code></pre>
