Skip to content

Fix the installation of kubeadm, kubelet and kubectl packages #3690

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

Closed
wants to merge 1 commit into from

Conversation

archups
Copy link
Contributor

@archups archups commented Jun 25, 2025

What this PR does / why we need it:
This PR is to fix the k8s packages installation error encountered during k8s upgrade from lower version when tried to do using kubeone apply on the customer environment having Rocky Linux as OS.

[10.17.187.121] All matches were filtered out by exclude filtering for argument: kubelet-1.30.13
[10.17.187.121] All matches were filtered out by exclude filtering for argument: kubeadm-1.30.13
[10.17.187.121] All matches were filtered out by exclude filtering for argument: kubectl-1.30.13
[10.17.187.121] Package kubernetes-cni-1.4.0-150500.1.1.x86_64 is already installed.
[10.17.187.121] Package cri-tools-1.30.1-150500.1.1.x86_64 is already installed.
[10.17.187.121] Error: Unable to find a match: kubelet-1.30.13 kubeadm-1.30.13 kubectl-1.30.13
ERRO[09:45:04 UTC] ssh: installing kubeadm and kubectl and kubelet

It is mentioned here in the official doc to define exclude parameter in the repository definition.
Add the Kubernetes yum repository. The exclude parameter in the repository definition ensures that the packages related to Kubernetes are not upgraded upon running yum update as there's a special procedure that must be followed for upgrading Kubernetes. Please note that this repository have packages only for Kubernetes 1.30; for other Kubernetes minor versions, you need to change the Kubernetes minor version in the URL to match your desired minor version (you should also check that you are reading the documentation for the version of Kubernetes that you plan to install).

Which issue(s) this PR fixes:

Fixes #

What type of PR is this?
/kind bug

Special notes for your reviewer:

Does this PR introduce a user-facing change? Then add your Release Note here:

Fix the Kubernetes repository configuration on RHEL-like systems (RockyLinux, AmazonLinux) to allow package upgrades

Documentation:

NONE

@archups archups requested review from kron4eg and xmudrii June 25, 2025 07:57
@archups archups self-assigned this Jun 25, 2025
@kubermatic-bot kubermatic-bot added docs/none Denotes a PR that doesn't need documentation (changes). kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Jun 25, 2025
@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign cnvergence for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 25, 2025
@embik
Copy link
Member

embik commented Jun 25, 2025

Just a minor comment, the release note isn't helpful to users and should be rephrased a bit.

Copy link
Member

@kron4eg kron4eg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using exclude without dnf --disableexcludes=kubernetes will not work.

@xmudrii
Copy link
Member

xmudrii commented Jun 25, 2025

/hold
for discussion

I don't see this working

@kubermatic-bot kubermatic-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 25, 2025
@dharapvj
Copy link
Contributor

I just want to say that I also see this in RHEL installations. I end up running yum versionlock clear on the machines where kubeone is stuck re-trying in another shell window to get past this problem but having this fixed in kubeone itself would be awesome!

@archups archups closed this Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-request dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. docs/none Denotes a PR that doesn't need documentation (changes). kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants