Skip to content

Commit

Permalink
chg kube repo addr
Browse files Browse the repository at this point in the history
  • Loading branch information
sysnet4admin committed Mar 5, 2024
1 parent 39f1000 commit 0f33c95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion B/B.001/U/Before-v1.28/Vagrantfile
Expand Up @@ -5,7 +5,7 @@
# max number of worker nodes
N = 3
# each of components to install
k8s_V = '1.24.7-00' # Kubernetes
k8s_V = '1.24.9-00' # Kubernetes
docker_V = '5:20.10.20~3-0~ubuntu-jammy' # Docker
ctrd_V = '1.6.8-1' # Containerd
## /configuration variables ##
Expand Down
9 changes: 4 additions & 5 deletions B/B.001/U/Before-v1.28/k8s_env_build.sh
Expand Up @@ -10,11 +10,10 @@ sed -i.bak -r 's/(.+swap.+)/#\1/' /etc/fstab

# add kubernetes repo
apt-get update && apt-get install apt-transport-https ca-certificates curl
curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg \
https://packages.cloud.google.com/apt/doc/apt-key.gpg
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] \
https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list

curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main
EOF

# add docker-ce repo
apt-get install -y \
Expand Down

0 comments on commit 0f33c95

Please sign in to comment.