Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect image name in deployment.yaml #114

Closed
jianhang33 opened this issue May 12, 2023 · 4 comments
Closed

Incorrect image name in deployment.yaml #114

jianhang33 opened this issue May 12, 2023 · 4 comments
Labels
kind/bug Bug status/closed Issue is closed (either delivered or triaged)

Comments

@jianhang33
Copy link

What happened: Failed to deploy the application to kubernetes due to "ErrImagePull"

What you expected to happen: the application to be deployed

How to reproduce it (as minimally and precisely as possible): use the file at https://github.com/gardener/oidc-webhook-authenticator/blob/master/config/samples/deployment.yaml to deploy

Anything else we need to know: The image name there is oidc-webhook-authenticator:latest, and it didn't work for me. I then replace with eu.gcr.io/gardener-project/gardener/oidc-webhook-authenticator:latest, and then it worked.

Environment: Linux, kubernetes

@jianhang33 jianhang33 added the kind/bug Bug label May 12, 2023
@jianhang33
Copy link
Author

Here are events I saw when describing the pod

  Normal   Pulling    5m28s (x4 over 6m56s)  kubelet            Pulling image "oidc-webhook-authenticator:latest"
  Warning  Failed     5m27s (x4 over 6m56s)  kubelet            Failed to pull image "oidc-webhook-authenticator:latest": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/oidc-webhook-authenticator:latest": failed to resolve reference "docker.io/library/oidc-webhook-authenticator:latest": pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  Warning  Failed     5m27s (x4 over 6m56s)  kubelet            Error: ErrImagePull
  Warning  Failed     5m16s (x6 over 6m55s)  kubelet            Error: ImagePullBackOff
  Normal   BackOff    115s (x21 over 6m55s)  kubelet            Back-off pulling image "oidc-webhook-authenticator:latest"

@dimityrmirchev
Copy link
Member

Please use the helm chart https://github.com/gardener/oidc-webhook-authenticator/tree/master/charts/oidc-webhook-authenticator in order to install the webhook authenticator. The deployment you linked is only used in a local dev setup.

@jianhang33
Copy link
Author

Thanks for the pointer. However, I'd love to see the README.md to include general deployment instructions and then provide local deployment as an example.

@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label May 15, 2023
@dimityrmirchev
Copy link
Member

I opened an issue to track the progress on enhancing the documentation w.r.t. deployments #115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Bug status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

No branches or pull requests

3 participants