Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiechengqi authored Aug 30, 2024
1 parent 99c2e24 commit f305481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/K8S/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source <(curl -SsL $BASEURL/tool/common.sh)

_ubuntu() {

EXEC "rm -f /etc/apt/sources.list.d/kubernetes.list"
EXEC "rm -f /etc/apt/keyrings/kubernetes-apt-keyring.gpg"
EXEC "curl -fsSL https://pkgs.k8s.io/core:/stable:/${version}/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg"
cat > /etc/apt/sources.list.d/kubernetes.list << EOF
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://mirrors.tuna.tsinghua.edu.cn/kubernetes/core:/stable:/${version}/deb/ /
Expand Down Expand Up @@ -47,7 +47,7 @@ osInfo=`get_os` && INFO "current os: $osInfo"
serviceName="kubelet"
version="v1.28"
versionTag="0"
VERSION="${version}-${versionTag}"
VERSION="${version}.${versionTag}"
# countryCode=`curl -SsL https://api.ip.sb/geoip | sed 's/,/\n/g' | grep country_code | awk -F '"' '{print $(NF-1)}'`
curl -SsL cip.cc | grep -E '^地址' | head -1 | grep '中国' &> /dev/null && countryCode="CN" || countryCode="Other"

Expand Down

0 comments on commit f305481

Please sign in to comment.