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

Update Installing Kubeadm, Kubelet, and Kubectl.txt #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Installing Kubeadm, Kubelet, and Kubectl.txt
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# CHAPTER 2.4 - Installing Kubeadm, Kubelet, and Kubectl
# https://learn.acloud.guru/course/2e0bad96-a602-4c91-9da2-e757d32abb8f/learn/56bea242-4b92-4bcb-ad80-f974467c8d7a/097bb262-1d4a-4870-9d1c-498ad730c348/watch

# For this lesson, we recommend creating 3 Ubuntu 22.04 - Jammy Jellyfish servers with 3 units each.

# Here are the commands used to install the Kubernetes components in this lesson. Run these on all three servers.

# Install dependency packages:

sudo apt-get update && sudo apt-get install -y apt-transport-https curl
sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates curl

# Download and add GPG key:

curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.27/deb/Release.key | sudo gig --dearmor -o /etc/apt/keyrings/kubernetes-apt.keyring.gpg

# Add Kubernetes to repository list:

cat <<EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
echo ‘deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.27/deb/ /‘ | sudo tee /etc/apt/sources.list.d/kubernetes.list

# Update package listings:

sudo apt-get update

# Install Kubernetes packages. Note: use the following command "sudo kill -9 $( sudo lsof /var/lib/dpkg/lock-frontend | awk '{ print $2 }' | tail -1 )" if you receive a "E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?" message.

sudo apt-get install -y kubelet=1.24.0-00 kubeadm=1.24.0-00 kubectl=1.24.0-00
sudo apt-get install -y kubelet kubeadm kubectl

# Turn off automatic updates:

Expand Down