pod image pull failed
Error message no basic auth credentials:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 4m26s default-scheduler Successfully assigned demolssdl/ks-sample-dev-b9c5fb8d-kjkgm to node2
Normal Pulling 2m53s (x4 over 4m25s) kubelet Pulling image "**:SNAPSHOT-main-11"
Warning Failed 2m53s (x4 over 4m25s) kubelet Failed to pull image "**:SNAPSHOT-main-11": rpc error: code = Unknown desc = Error response from daemon: Get **/manifests/SNAPSHOT-main-11: no basic auth credentials
Warning Failed 2m53s (x4 over 4m25s) kubelet Error: ErrImagePull
Warning Failed 2m39s (x6 over 4m25s) kubelet Error: ImagePullBackOff
Normal BackOff 2m26s (x7 over 4m25s) kubelet Back-off pulling image "***"
Use k8s
When the service is deployed, the pod running status displayed by kubectl get all -o wide is abnormal
kubectl describe pod pod-hhja889hkjshaf87yh see the last exception information Error response from daemon: pull access denied for istio/citadel, repository does not exist or may require 'docker login', it is judged that it is caused by no login or the login has not taken effect
Requires login on all nodes
Generate /root/.docker/config.json file after docker login, copy the file to /var/lib/kubelet/config.json