I have my kubernetes nodes on different vms . each VM has 1 kubernetes node . in total I have 7 worker nodes
While trying to create POD on 1 node I get ImagepullBackOff error while docker pull on the same node is successful . rest of the worker nodes are working fine My docker registry is already set as insecure-regiry in daemon.json
pls help
CodePudding user response:
ImagePullBackOff
is almost always a typo in the image name. Make sure you specified the name correctly.
CodePudding user response:
You need to describe the Pod using: kubectl describe pod <name>
. It will show a more detailed message why pulling fails.
CodePudding user response:
The kubernetes service account attached to the Pod is probably not able to pull the image. The service account must have the correct ImagePullSecrets.
When no service account is configured, it uses the default
service account.
kubectl get sa -o yaml
This will give a list of ImagePullSecrets attached to this service account. See if you have created the correct secret and attached it to the service account.