I have configured a secret on Kubernetes and inside the node, I am able to pull an image with docker pull
perfectly. But when kubectl tries to schedule a pod on the node it shows image pull backoff error. Is there any setting needs to be done while bootstrapping. I am using community AMI on AWS for Kubernetes node.
Try this:
kubectl describe pod-name
- see event log at the end. it should show series of events starting from initial image pull to subsequent attempts and may continue to restart in order to achieve desired state as per deployment recordkubectl logs pod-name
kubectl exec -it pod-name
(if single container) or kubectl exec -it pod-name -c container-name
.