Lab 20.1 Kubernetes Installation Error: Repository Not Found - Looking for Alternatives
While trying to install Kubernetes, I encountered the following error:
Err:6 https://packages.cloud.google.com/apt kubernetes-xenial Release
404 Not Found [IP: 142.250.185.142 443]
Reading package lists... Done
E: The repository 'http://apt.kubernetes.io kubernetes-xenial Release' does not have a Release file.
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.
It seems that the repository for kubernetes-xenial is no longer available or doesn't have a Release file. Has anyone else faced this issue? Is there an alternative repository or method to install Kubernetes on this system?
Answers
-
Hi @roberto.banditt,
The Kubernetes project is extremely dynamic, and its installation instructions have changed. I compiled a shell script that installs a single node Kubernetes cluster (v1.31.0 - the latest at this time), containerd runtime, and Flannel CNI network plugin (WeaveNet project has been archived).
Please install Kubernetes on a Virtual Machine rather than your own workstation. It will make permanent changes to the networking configuration of the host system. The VM should have 2 CPU cores, 6-8 GB RAM, 15+ GB disk, a single bridged network interface, and run Ubuntu 20.04 LTS. The VM's private IP address should not be from the 10.244.0.0/16 subnet, in order to avoid overlapping with the Pod subnet managed by the Flannel plugin.
The forum's policy does not allow for the script content to be shared here in any format, so I'd recommend retrieving the script from the following URL
https://gist.githubusercontent.com/Download the script and run it in the VM's terminal as the non-root user. It covers lab exercise 20.1 in its entirety. After the scripts completion run
kubectl get nodesandkubectl get pods -Acommands several times until the Node becomes Ready and all Pods reach the Running state.Regards,
-Chris0
Categories
- All Categories
- 176 LFX Mentorship
- 176 LFX Mentorship: Linux Kernel
- 750 Linux Foundation IT Professional Programs
- 373 Cloud Engineer IT Professional Program
- 169 Advanced Cloud Engineer IT Professional Program
- 74 DevOps IT Professional Program - Discontinued
- 4 DevOps & GitOps IT Professional Program
- 99 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- 1 AI & ML Training
- 1 Blockchain & Decentralized Identity Training
- 3 Cloud & Containers Training
- 1 Cybersecurity Training
- 1 DevOps & Site-Reliability Training
- 1 Linux Kernel Development Training
- 1 Networking Training
- 1 Open Source Best Practice Training
- 1 System Administration Training
- 1 System Engineering Training
- 1 Web & Application Development Training
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 947 Programming and Development
- 310 Kernel Development
- 619 Software Development
- 981 Software
- 373 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)