<p>I use jenkins k8s plugin to deploy slave node，but in the slave container，can not use kubectl，the error is ：</p>

<blockquote>
  <p>User "system:serviceaccount:default:default" cannot list resource "pods" in API group "" in the namespace "default"</p>
</blockquote>

<p>Nearly, I done a thing like <code>docker run a slave</code> , but it's ok, the docker containers can use kubectl, why?
thanks!</p>

haoxiaofei
<p>You need to create a role for cluster-admin for your user:</p>

<pre><code>kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts
</code></pre>
