<p>I am new to Kubernetes.  I am trying to follow <a href="https://kubernetes.io/docs/setup/minikube/#quickstart" rel="noreferrer">this tutorial</a> that instructs me on how to use minikube to setup a local service.  I was able to get things running with the <code>$ kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080</code> service from the tutorial. Huzzah!</p>

<p>Now I want to run a server with a <em>locally tagged-and-built</em> Docker image.  According to <a href="https://stackoverflow.com/questions/42564058/how-to-use-local-docker-images-with-minikube">this post</a> all I need to do is tell my computer to use the minikube docker daemon, build my image, and set the <code>imagePullPolicy</code> to never.  </p>

<p>How and where do I set the <code>imagePullPolicy</code> with <code>minikube</code>?  I've googled around and while there's plenty of results, my "babe in the woods" status with K8 leads to information overload. (i.e. the simpler your answer the better)</p>

Alana Storm
<p>You have to edit your <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="noreferrer">Deployment</a> (<code>kubectl run</code> creates a deployment). The spec would look something like this:</p>

<pre><code>spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 2
  selector:
    matchLabels:
      run: hello-minikube
  strategy:
    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: null
      labels:
        run: hello-minikube
    spec:
      containers:
      - image: k8s.gcr.io/echoserver:1.10 &lt;-- change to the right image
        imagePullPolicy: IfNotPresent &lt;-- change to Always
        name: hello-minikube
        ports:
        - containerPort: 8080
          protocol: TCP
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
</code></pre>

<p>Edit with:</p>

<pre><code>$ kubectl edit deployment hello-minikube
</code></pre>
