kubernetes: image pull failed due to invalid_token authorization failed

5/30/2020

I'm getting this error message on kubernetes when I'm trying to pull an image:

0s          Normal    Pulling             pod/zeppelin-server-6f5646f56d-6slj2    Pulling image "apache/zeppelin:0.9.0"
0s          Warning   Failed              pod/zeppelin-server-6f5646f56d-6slj2    Failed to pull image "apache/zeppelin:0.9.0": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/apache/zeppelin:0.9.0": failed to copy: httpReaderSeeker: failed open: server message: invalid_token: authorization failed
0s          Warning   Failed              pod/zeppelin-server-6f5646f56d-6slj2    Error: ErrImagePull
-- Jordi
kubernetes

1 Answer

5/30/2020

You might want to perform a login into the container registry (docker.io) in your deployment or create a custom dockerfile with your credentials for the registry and store it in the container and then use that image for the deployment.

-- Adhira Deogade
Source: StackOverflow