I’m trying to run through the course “Kubernetes: Your First Project (2021)” on LinkedIn Learning, and run into a problem that I’ve not seen addressed directly. Here’s what I’ve done:
-
Created the docker image.
-
Created a kind cluster from PowerShell.
-
Loaded the docker image via podman (apparently, this cannot be done reliably via the CLI, so please let me know whether I’m wrong about that).
-
Created a deployment via PowerShell:
kubectl create deployment explore-california --image=localhost/explorecalifornia-new.com --port 80 -
Edit the deployment so that it will never pull the image from a repository.
kubectl get pods returns that I’m in ErrImageNeverPull.
The image name matches, and it is in kind:
docker exec -it kind-control-plane crictl images
IMAGE TAG IMAGE ID SIZE
docker.io/kindest/kindnetd v20251212-v0.29.0-alpha-105-g20ccfc88 4921d7a6dffa9 42.7MB
docker.io/kindest/local-path-helper v20251211-v0.29.0-alpha-100-g82a92c5d 2e560e8db0b10 3.08MB
docker.io/kindest/local-path-provisioner v20251212-v0.29.0-alpha-105-g20ccfc88 65232e320e58b 24.7MB
localhost/explorecalifornia-new.com latest 1596891acdf0f 80.3MB
(etc.)
Where to go next with this?