<p>I'm using Jenkins version 2.190.2 and Kubernetes plugin 1.19.0
I have this jenkins as master at kubernetes cluster at AWS.
This jenkins have kubernetes plugin configured and it's running ok. 
I have some pod templates and containers configured that are running.
I'm able to run declarative pipelines specifying agent and container.</p>

<p>My problem is that I'm unable to run jobs parallel.
When more than one job is executed at same time, first job starts, pod is created and execute stuff. The second job waits to the first jobs ends, even if use different agents.</p>

<p>EXAMPLE:</p>

<p>Pipeline 1</p>

<pre><code>pipeline {
    agent { label "bash" }

    stages {
        stage('init') {
            steps {
                container('bash') {
                    echo 'bash'
                    sleep 300
                }
            }
        }
    }
}
</code></pre>

<p>Pipeline 2</p>

<pre><code>pipeline {
    agent { label "bash2" }

    stages {
        stage('init') {
            steps {
                container('bash2') {
                    echo 'bash2'
                    sleep 300
                }
            }
        }
    }
}
</code></pre>

<p>This is the org.csanchez.jenkins.plugins.kubernetes log. I've uploaded to wetransfer -> we.tl/t-ZiSbftKZrK</p>

<p>I've read a lot of this problem and I've configured jenkins start with this JAVA_OPTS but problem is not solved.</p>

<pre><code>-Dhudson.slaves.NodeProvisioner.initialDelay=0 
-Dhudson.slaves.NodeProvisioner.MARGIN=50 
-Dhudson.slaves.NodeProvisioner.MARGIN0=0.85
</code></pre>

<p>Kubernetes plugin is configured with:</p>

<ul>
<li>Kubernetes cloud / Concurrency Limit = 50. I've configured without value but the problem still occurs</li>
<li>Kubernetes cloud / Pod retention = never</li>
<li>Pod template / Concurrency Limit without value. I've configured with 10 but the problem still occurs</li>
<li>Pod template / Pod retention = Default</li>
</ul>

<p>What configuration I'm missing or what errors i'm doing?</p>

jagr
<p>Finally I've solved my problem due to another problem.
We started to get errors at create normal pods because our kubernetes node at aws hadn't enough free ip's. Due to this error we scaled our nodes and now jenkins pipelines can be running parallel with diferents pods and containers.</p>
