<p>I have EKS cluster setup with single managed node group its contains two (worker ec2 VM). I deployed Jenkins inside the k8s cluster its is up and running without any issue.</p>
<p>Note: in Jenkins - configure system - cloud - k8 specification - Kubernetes URL - I placed my master address where my EKS cluster is running Kubernetes control plane is running at  <a href="https://eksendpoint.eu-central-1.eks.amazonaws.com" rel="nofollow noreferrer">https://eksendpoint.eu-central-1.eks.amazonaws.com</a> and also connection test is successful.</p>
<p><a href="https://i.stack.imgur.com/2lbOP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2lbOP.png" alt="k8s cloud configuration" /></a></p>
<p>Next when I'm running Jenkins build creating Jenkins build pod and once the build is completed Jenkins build pod also getting terminated automatically.</p>
<p>Note: In Jenkins I have only single node master and there is no salve. when jenkins file create Docker image using below code and also image successfully tagged with based my code.</p>
<p>Now the question is after building Docker image where should i get the Docker images to deploy into my k8s environment. Note: I'm not using any Docker registry container to upload my docker images in this case how do i get my Docker images.</p>
<pre><code> stage('Build Docker Image') {
      container('docker') {
        echo 'docker'
        sh &quot;docker build --network=host -t myimage:mytag .&quot;
        sh 'pwd'
        sh 'ls -lrt'
        sh 'docker images'
        sh 'hostname'
      }
    }

</code></pre>
<p>Jenkins logs output</p>
<pre><code>[Pipeline] sh
+ docker images
+ grep devops
myimage/mytag                  build-12345      8b1c58dcc39d   3 seconds ago       583MB

[Pipeline] sh
+ hostname
worker23cc8b1c0-c6b0-415b-b0e9-f23186ca39e8-xsm58-z7wmk
</code></pre>

Gowmi
<p>kubernetes resources specifying a container image to be run inside of pods expect the image to be available in a container image registry. it is not possible to create pods with images not available in an image registry.</p>
