title: Kubernetes service account to access all the namespaces
body: <p>I am trying to access all the namespaces and pods from my another pod. So, I have created clusterrole, clusterrolebinding and service account. I am able access the only customer namespace resources. But I need to access all the namespace resources. Is it possible?</p>
  <pre><code>apiVersion: v1
  kind: ServiceAccount
  metadata:
    name: spinupcontainers
    namespace: customer
  
  ---
  kind: ClusterRole
  apiVersion: rbac.authorization.k8s.io/v1
  metadata:
    name: spinupcontainers
    namespace: customer
  rules:
    - apiGroups: [&quot;&quot;]
      resources: [&quot;pods&quot;, &quot;pods/exec&quot;]
      verbs: [&quot;get&quot;, &quot;list&quot;, &quot;delete&quot;, &quot;patch&quot;, &quot;create&quot;]
  
  ---
  apiVersion: rbac.authorization.k8s.io/v1
  kind: RoleBinding
  metadata:
    name: spinupcontainers
    namespace: customer
  subjects:
    - kind: ServiceAccount
      name: spinupcontainers
  roleRef:
    kind: ClusterRole
    name: spinupcontainers
    apiGroup: rbac.authorization.k8s.io
  </code></pre>
  <p>Could anyone help to resolve this problem?</p>
  <p>Thanks in advance</p>