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

chore(manifests): bump kubeadm version v1.23.12 #30

Merged
merged 1 commit into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
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
9 changes: 6 additions & 3 deletions hack/docker-install/install-docker-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ if (( $EUID != 0 )); then
exit
fi

VERSION_STRING=5:23.0.4-1~ubuntu.20.04~focal

apt-get update
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
Expand All @@ -14,7 +16,7 @@ add-apt-repository -y \
$(lsb_release -cs) \
stable"
apt-get update
apt-get install -y docker-ce docker-ce-cli containerd.io
apt-get install -y docker-ce=$VERSION_STRING docker-ce-cli=$VERSION_STRING containerd.io

echo "==============================="
echo "installation completed, please add your user into docker group, something like"
Expand All @@ -24,11 +26,12 @@ echo "****"
echo "for user ubuntu"
echo "And try to logout/login again, and see if `docker ps` works"

# noted(hsiny): use low mtu as harvester use 1450 for default nic
# noted(hsiny): use low mtu 1400 to enforce this won't hit any router limits
# see issue https://github.com/harvester/harvester/issues/3822
tee /etc/docker/daemon.json <<EOF
{
"mtu": 1450
"exec-opts": ["native.cgroupdriver=systemd"],
"mtu": 1400
}
EOF

Expand Down
18 changes: 17 additions & 1 deletion hack/kubeadm/0.install_kubeadm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@ cat <<EOF | tee /etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet=1.21.14-00 kubeadm=1.21.14-00 kubectl=1.21.14-00
apt-get install -y kubelet=1.23.17-00 kubeadm=1.23.17-00 kubectl=1.23.17-00
apt-get mark kubeadm kubelet kubectl

# if encountered the following error during install kubelet
# W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: NO_PUBKEY B53DC80D13EDEF05
# W: https://apt.kubernetes.io/dists/kubernetes-xenial/InRelease...: NO_PUBKEY B53DC80D13EDEF05
# W: Some index files failed to download. They have been ignored, or old ones used instead.
#
# check this page https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/#install-using-native-package-management
# to see how it is fixed
#
##
# In short
# sudo mkdir -p /etc/apt/keyrings
# curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
# echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
# sudo apt-get update && apt-get install -y kubectl
2 changes: 1 addition & 1 deletion hack/kubeadm/1.generate_env_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ KUBEADM_TOKEN=3chl6w.ymb8xtge15qndyfk
LOCALHOST=127.0.0.1
PUBLICIP="$MYIP"
MASTERIP="$MASTERIP"
KUBECTL_VERSION=v1.21.14
KUBECTL_VERSION=v1.23.12
EOF

source ./env.sh
6 changes: 3 additions & 3 deletions hack/kubeadm/4.install_longhorn_storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# install prerequsite

# install nfs-common
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.3.2/deploy/prerequisite/longhorn-nfs-installation.yaml
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.4.2/deploy/prerequisite/longhorn-nfs-installation.yaml

# install open-iScsi
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.3.2/deploy/prerequisite/longhorn-iscsi-installation.yaml
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.4.2/deploy/prerequisite/longhorn-iscsi-installation.yaml

kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.3.2/deploy/longhorn.yaml
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.4.2/deploy/longhorn.yaml

# uninstall
# kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v1.3.2/uninstall/uninstall.yaml
Expand Down