* create folder for key
The following command will fail without the folder created manually beforhand.
```
curl -fsSL https://dl.k8s.io/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
```
* updated instruction
updated according to the comment in the PR
* updated mkdir part
* Updated mkdir
The keyring needs to be readable by _apt, otherwise "apt update" prints the following kind of error:
W: GPG error: https://prod-cdn.packages.k8s.io/repositories/isv:/kubernetes:/core:/stable:/v1.29/deb InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 234654DA9A296436
E: The repository 'https://pkgs.k8s.io/core:/stable:/v1.29/deb InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
kubernetes.list needs to be world-readable, otherwise command-not-found prints warnings such as:
WARNING:root:could not open file '/etc/apt/sources.list.d/kubernetes.list'
* Update install-kubectl-linux.md
Added instructions for SUSE based distributions
* Update change-package-repository.md
Added a section for openSUSE and SLES distributions
* Update content/en/docs/tasks/tools/install-kubectl-linux.md
Co-authored-by: Michael <haifeng.yao@daocloud.io>
* Update content/en/docs/tasks/tools/install-kubectl-linux.md
Co-authored-by: Michael <haifeng.yao@daocloud.io>
* Update content/en/docs/tasks/tools/install-kubectl-linux.md
Co-authored-by: Michael <haifeng.yao@daocloud.io>
---------
Co-authored-by: Michael <haifeng.yao@daocloud.io>
In "Test to ensure the version you installed is up-to-date:", the command "kubectl version --client" is given but on running it on my system it says "This version information is deprecated and will be replaced with the output from kubectl version --short". But kubectl --short also gives a warning. So I thought it would be best to update the docs to add a note to ignore this warning.
Co-Authored-By: Tim Bannister <tim@scalefactory.com>
microdnf is having issues with the repo gpgkey that was previously used
however the repogpgcheck was removed in
https://github.com/kubernetes/website/pull/34546 so the gpgkey for the
repo can be removed as well.
this is to implement #36111