[*] 更新 k8s 版本
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s

This commit is contained in:
Martin 2025-03-20 09:00:37 +08:00
parent e67d896840
commit a13df10428

View File

@ -3,7 +3,9 @@
lsb_dist=$(cat /etc/*release | grep ^ID= | cut -d= -f2) # ubuntu or debian?
release=$(cat /etc/*release | grep VERSION_CODENAME | cut -d= -f2) # ubuntu(jammy oracular) debian(bookworm)....
# 默认值
K8S_VERSION=${K8S_VERSION:-1.32} # 如果未设置,使用默认值 1.32
K8S_RELEASE=${K8S_VERSION:-1.32.3} # 如果未设置,使用默认值 1.32.3
K8S_VERSION=${K8S_RELEASE%.*}
CONTAINERD_VERSION=${CONTAINERD_VERSION:-2.0.2} # 如果未设置,使用默认值 2.0.2
CALICO_VERSION=${CALICO_VERSION:-3.29.1} # 如果未设置,使用默认值 2.0.2
MIRRORS=${MIRRORS:-docker.martin98.com/k8s} # 如果未设置,默认使用集群镜像
@ -253,7 +255,7 @@ etcd:
dataDir: /var/lib/etcd
imageRepository: $MIRRORS
kind: ClusterConfiguration
kubernetesVersion: "$K8S_VERSION"
kubernetesVersion: "$K8S_RELEASE"
networking:
dnsDomain: cluster.local
podSubnet: $pod_subnet