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
-
Go to Images from the left navigation pane.
-
Click the overflow menu icon corresponding to the image you want to push and select Push image to Kind cluster.
-
Optional: If you created multiple Kind clusters, select the required Kind cluster from the context dropdown list. A successful operation notification opens.
-
Click OK.
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
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 - Pod
-
Go to Pods from the left navigation pane.
-
Click Play Kubernetes YAML and provide the following details:
- Kubernetes YAML file: select your
verify_my_image.yaml
file. - Set Runtime to Kubernetes cluster.
- Kubernetes YAML file: select your
-
Click Play.
-
Click Done.
-
View the created pod
verify-my-image
on the same page. The pod STATUS is RUNNING.