Pushing an image to your local Lima-powered Kubernetes cluster
With Podman Desktop, you can push an image to your local Lima-powered Kubernetes cluster.
Prerequisites
- You onboarded a container engine.
- You onboarded a Lima cluster.
- You have set your Kubernetes context to your local Lima-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 Lima cluster.
Verification
Lima enables you to list loaded images, using:
$ LIMA_INSTANCE=<name> lima sudo crictl images
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.
- Click Done
- Kubernetes YAML file: select your
-
Open
Pods. -
Search pods: <verify-my-image>
. -
The pod Status is Running.