To run a local baked docker image in docker for mac kubernetes set the imagePullPolicy
to Never
.
For example:
apiVersion: v1
kind: Pod
metadata:
name: local-image-test
spec:
containers:
- name: local-image-container
image: local-image:latest
imagePullPolicy: Never
(Credits to kubernetes/kubernetes#1293 (comment) for this solution)
Thanks i just started to think docker desktop k8s is not going to use local image on MAC since 1.24, but the
imagePullPolicy: Never
did the trick.