Saravanakumar Raju:
Hi Team - I’m getting error due image pull limit in docker and the issue is fixed after using docker creds stored in secret…
Saravanakumar Raju:
- Run
docker login [server]
for each set of credentials you want to use. This updates$HOME/.docker/config.json
on your PC. - View
$HOME/.docker/config.json
in an editor to ensure it contains only the credentials you want to use. - Get a list of your nodes; for example:
◦ if you want the names:nodes=$( kubectl get nodes -o jsonpath='{range.items[*].metadata}{.name} {end}' )
◦ if you want to get the IP addresses:nodes=$( kubectl get nodes -o jsonpath='{range .items[*].status.addresses[?(@.type=="ExternalIP")]}{.address} {end}' )
- Copy your local
.docker/config.json
to one of the search paths list above.
◦ for example, to test this out:for n in $nodes; do scp ~/.docker/config.json root@"$n":/var/lib/kubelet/config.json; done
Saravanakumar Raju:
followed the above steps and the issue was fixed