Pushing an image to your local Kind-powered Kubernetes cluster
With Podman Desktop, you can push an image to your local Kind-powered Kubernetes cluster.
Prerequisites
- You onboarded a container engine.
- You onboarded a Kind cluster.
- You have set your Kubernetes context to your local Kind-powered Kubernetes 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 Kind cluster.
- If you created many Kind clusters, select your Kind cluster from the list.
Verification
Kind does not enable you to list loaded images. Therefore, 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.
- Click Done
- Kubernetes YAML file: select your
-
Open Pods.
-
Search pods:
<verify-my-image>
. -
The pod Status is Running.