<p>After creating a Service Account for Jenkins with the commands:</p>

<pre><code>kubectl -n jenkins create sa jenkins

kubectl create clusterrolebinding jenkins --clusterrole cluster-admin --serviceaccount=jenkins:jenkins
</code></pre>

<p>and adding the certificate in Jenkins (Manage Jenkins --> Configure System --> Add Cloud) I get the error message</p>

<pre><code>Error connecting to https://169.46.7.238:21769: 
Failure executing: GET at: 
https://169.46.7.238:21769/api/v1/namespaces/jenkins/pods. 
Message: Forbidden!Configured service account doesn't have access. 
Service account may have been revoked. 
User "system:serviceaccount:jenkins:default" cannot list pods in the namespace "jenkins"..
</code></pre>

<p>It seems like Jenkins tries to use the <code>default</code>Serviceaccount.</p>

<p>How can this be fixed? </p>

<p>This one is work for me
<code>kubectl create clusterrolebinding jenkins --clusterrole cluster-admin --serviceaccount=jenkins:default</code></p>
