Skip to content

Access Denied for kubernetes repository #3969

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

Open
dracorp opened this issue Apr 1, 2025 · 5 comments
Open

Access Denied for kubernetes repository #3969

dracorp opened this issue Apr 1, 2025 · 5 comments
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority

Comments

@dracorp
Copy link

dracorp commented Apr 1, 2025

I would like to add kubernetes repository for RedHat OS familly: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management
but for https://pkgs.k8s.io/core:/stable:/v1.32/rpm/ I get:

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
</Error>

How to use that repository?

@k8s-ci-robot k8s-ci-robot added needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority labels Apr 1, 2025
@xmudrii
Copy link
Member

xmudrii commented Apr 8, 2025

https://pkgs.k8s.io/core:/stable:/v1.32/rpm/ is a base URL and it's not accessible by it's own, that's expected. Just follow the instructions from the document that you linked, and if you run into any issue, please post the output of your package manager.

@dracorp
Copy link
Author

dracorp commented Apr 9, 2025

@xmudrii

# yum makecache --disablerepo=* --enablerepo=kubernetes
Loaded plugins: aliases, etckeeper, list-data, product-id, remove-with-leaves, search-disabled-repos, show-leaves, verify, versionlock
kubernetes                                                                                                                            | 1.7 kB  00:00:00
Not using downloaded kubernetes/repomd.xml because it is older than what we have:
  Current   : Tue Oct 12 00:14:39 52862100

  Downloaded: Wed Mar 12 03:33:30 2025
https://pkgs.k8s.io/core%3A/stable%3A/v1.32/rpm/repodata/filelists.xml.gz: [Errno 14] HTTPS Error 403 - Forbidden
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

# cat /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/
enabled=1
gpgcheck=1
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/repodata/repomd.xml.key

As you see I get 403.

@xmudrii
Copy link
Member

xmudrii commented Apr 9, 2025

@dracorp It could be that your IP address is blocked by our provider. Are you able to access https://pkgs.k8s.io/core:/stable:/v1.32/rpm/repodata/repomd.xml.key? If that also throws 403, that means that our provider is blocking you and there's nothing that we can do about that.

@dracorp
Copy link
Author

dracorp commented Apr 17, 2025

@xmudrii thank you for hint. I will check it.

@dracorp
Copy link
Author

dracorp commented Apr 17, 2025

@xmudrii I misread your message and it came out a little different. I can install kubectl 1.32, but for the latest version 1.32.3 I get 403.
I'm checking with my service desk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority
Projects
None yet
Development

No branches or pull requests

3 participants