[*] 更新 k8s 版本
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
This commit is contained in:
parent
e67d896840
commit
a13df10428
@ -3,7 +3,9 @@
|
|||||||
lsb_dist=$(cat /etc/*release | grep ^ID= | cut -d= -f2) # ubuntu or debian?
|
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)....
|
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
|
CONTAINERD_VERSION=${CONTAINERD_VERSION:-2.0.2} # 如果未设置,使用默认值 2.0.2
|
||||||
CALICO_VERSION=${CALICO_VERSION:-3.29.1} # 如果未设置,使用默认值 2.0.2
|
CALICO_VERSION=${CALICO_VERSION:-3.29.1} # 如果未设置,使用默认值 2.0.2
|
||||||
MIRRORS=${MIRRORS:-docker.martin98.com/k8s} # 如果未设置,默认使用集群镜像
|
MIRRORS=${MIRRORS:-docker.martin98.com/k8s} # 如果未设置,默认使用集群镜像
|
||||||
@ -253,7 +255,7 @@ etcd:
|
|||||||
dataDir: /var/lib/etcd
|
dataDir: /var/lib/etcd
|
||||||
imageRepository: $MIRRORS
|
imageRepository: $MIRRORS
|
||||||
kind: ClusterConfiguration
|
kind: ClusterConfiguration
|
||||||
kubernetesVersion: "$K8S_VERSION"
|
kubernetesVersion: "$K8S_RELEASE"
|
||||||
networking:
|
networking:
|
||||||
dnsDomain: cluster.local
|
dnsDomain: cluster.local
|
||||||
podSubnet: $pod_subnet
|
podSubnet: $pod_subnet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user