Skip to main content

Pushing an image to your local Minikube-powered Kubernetes cluster

With Podman Desktop, you can push an image to your local Minikube-powered Kubernetes cluster.

Prerequisites

Procedure

  1. Go to Images from the left navigation pane.
  2. Click the overflow menu icon corresponding to the image you want to push and select Push image to minikube cluster. A successful operation notification opens. pushing an image to Minikube
  3. Click OK.

Verification

Minikube enables you to list loaded images:

$ minikube image list

You can also create a pod that uses the loaded image:

  1. Create a verify_my_image.yaml Kubernetes YAML file on your workstation. Replace the placeholders:

    • Pod name and container name values must consist of lowercase alphanumeric characters, '-', or '.', and must start and end with an alphanumeric character.
    • Container image value is the image you pushed. You can click the name of the image to check its name and tag.
    apiVersion: v1
    kind: Pod
    metadata:
    name: <verify-my-image>
    spec:
    containers:
    - name: <my-image>
    image: <my_image>:<my_tag>
    imagePullPolicy: Never
  2. Go to Pods from the left navigation pane.

  3. Click Play Kubernetes YAML and provide the following details:

    • Kubernetes YAML file: select your verify_my_image.yaml file.
    • Set Runtime to Kubernetes cluster.
  4. Click Play. play a Kubernetes YAML

  5. Click Done.

  6. View the created pod verify-my-image on the same page. The pod STATUS is RUNNING. play a Kubernetes YAML