<p>I have saved a docker image as a tar file locally using the command,</p>

<pre><code>docker save -o ./dockerImage:version.tar docker.io/image:latest-1.0
</code></pre>

<p>How to specify this file in my pod.yaml to use this tarball and start the pod instead of pulling / already pulled image to launch the container.</p>

<p><strong>Current pod.yaml file:</strong></p>

<pre><code> apiVersion: myApp/v1
 kind: myKind
 metadata:
   name: myPod2
 spec:
   baseImage: docker.io/image
   version: latest-1.0
</code></pre>

<p><strong>I want similar to this</strong></p>

<pre><code> apiVersion: myApp/v1
 kind: myKind
 metadata:
   name: myPod2
 spec:
   baseImage: localDockerImage.tar:latest-1.0
   version: latest-1.0
</code></pre>

<p>There's no direct way to achieve that in Kubernetes.</p>

<p>See the discussions here: <a href="https://github.com/kubernetes/kubernetes/issues/1668" rel="nofollow noreferrer">https://github.com/kubernetes/kubernetes/issues/1668</a></p>

<p>They have finally closed that issue because of the following reasons:</p>

<blockquote>
  <p>Given that there are a number of ways to do this (your own cluster startup scripts, run a daemonset to side load your custom images, create VM images with images pre-loaded, run a cluster-local docker registry), and the fact that there have been no substantial updates in over two years, I'm going to close this as obsolete.</p>
</blockquote>
