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
- You onboarded a container engine.
- You onboarded a Minikube cluster.
- You have set your Kubernetes context to your Minikube cluster.
- Your image is available on the Images page:
<my_image>:<my_tag>
.
Procedure
- Open Podman Desktop dashboard > Images.
- Search images:
<your_image>:<your_tag>
. - Click > Push image to Minikube cluster.
- If you created many Minikube clusters, select your Minikube cluster from the list.
Verification
Minikube enables you to list loaded images, using:
$ minikube image list
You can also create a Pod that uses the loaded image:
Create a
verify_my_image.yaml
Kubernetes YAML file on your workstation. Replace the placeholders:- Pod
name
and containername
value must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character. - Container
image
value is the image you pushed.
apiVersion: v1
kind: Pod
metadata:
name: <verify-my-image>
spec:
containers:
- name: <my-image>
image: <my_image>:<my_tag>
imagePullPolicy: Never- Pod
Open Pods > Play Kubernetes YAML.
- Kubernetes YAML file: select your
verify_my_image.yaml
file. - Select Runtime: Using a Kubernetes cluster.
- Click Play.
- Clik Done
- Kubernetes YAML file: select your
Open Pods.
Search pods:
<verify-my-image>
.The pod Status is Running.