Skip to content
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
108 changes: 108 additions & 0 deletions builtin/core/defaults/config/v1.34.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
apiVersion: kubekey.kubesphere.io/v1
kind: Config
spec:
download:
# if set as "cn", so that online downloads will try to use available domestic sources whenever possible.
zone: ""
kubernetes:
kube_version: {{ .kube_version }}
# helm binary
helm_version: v3.18.5
control_plane_endpoint:
kube_vip:
image:
tag: v0.7.2
haproxy:
image:
tag: 2.9.6-alpine
etcd:
# etcd binary
etcd_version: v3.5.25

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

指定的 etcd 版本 v3.5.25 似乎不存在。etcd v3.5.x 系列的最新稳定版本是 v3.5.14。使用一个不存在的版本将导致安装过程中下载失败。请核实此版本号。

image_registry:
# ========== image registry ==========
# keepalived image tag. Used for load balancing when there are multiple image registry nodes.
keepalived_version: 2.0.20
# ========== image registry: harbor ==========
# harbor image tag
harbor_version: v2.10.2
# docker-compose binary
dockercompose_version: v2.20.3
# ========== image registry: docker-registry ==========
# docker-registry image tag
docker_registry_version: 2.8.3
cri:
# support: containerd,docker
container_manager: containerd
sandbox_image:
tag: "3.9"
# ========== cri ==========
# crictl binary
crictl_version: v1.33.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

指定的 crictl 版本 v1.33.0 似乎不存在。cri-tools 的最新发布版本是 v1.30.0。使用一个不存在的版本将导致下载失败。请检查该版本号。

# ========== cri: docker ==========
# docker binary
docker_version: 24.0.7
# cridockerd. Required when kube_version is greater than 1.24
cridockerd_version: v0.3.1
# ========== cri: containerd ==========
# containerd binary
containerd_version: v1.7.6
# runc binary
runc_version: v1.1.7
cni:
ipv6_support: false
multus:
image:
tag: v4.3.0
# ========== cni ==========
# cni_plugins binary (optional)
# cni_plugins_version: v1.2.0
# ========== cni: calico ==========
# calicoctl binary
calico_version: v3.28.2
# ========== cni: cilium ==========
# cilium helm
cilium_version: 1.18.3
# ========== cni: kubeovn ==========
# kubeovn helm
kubeovn_version: 1.13.0
# ========== cni: hybridnet ==========
# hybridnet helm
hybridnet_version: 0.6.8
storage_class:
# ========== storageclass ==========
# ========== storageclass: local ==========
local:
provisioner_image:
tag: 4.2.0
linux_utils_image:
tag: 4.2.0
# ========== storageclass: nfs ==========
# nfs provisioner helm version
nfs_provisioner_version: 4.3.0
dns:
dns_image:
tag: v1.12.1
dns_cache_image:
tag: 1.24.0
image_manifests:
- docker.io/calico/apiserver:v3.28.2
- docker.io/calico/cni:v3.28.2
- docker.io/calico/ctl:v3.28.2
- docker.io/calico/csi:v3.28.2
- docker.io/calico/kube-controllers:v3.28.2
- docker.io/calico/node-driver-registrar:v3.28.2
- docker.io/calico/node:v3.28.2
- docker.io/calico/pod2daemon-flexvol:v3.28.2
- docker.io/calico/typha:v3.28.2
- docker.io/kubesphere/coredns:v1.12.1
- docker.io/kubesphere/k8s-dns-node-cache:1.24.0
- docker.io/kubesphere/kube-apiserver:{{ .kube_version }}
- docker.io/kubesphere/kube-controller-manager:{{ .kube_version }}
- docker.io/kubesphere/kube-proxy:{{ .kube_version }}
- docker.io/kubesphere/kube-scheduler:{{ .kube_version }}
- docker.io/kubesphere/pause:3.9
- docker.io/openebs/linux-utils:4.2.0
- docker.io/openebs/provisioner-localpv:4.2.0
- quay.io/tigera/operator:v1.34.5
- docker.io/library/haproxy:2.9.6-alpine
- docker.io/plndr/kube-vip:v0.7.2
Comment on lines +88 to +108

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

image_manifests 中的镜像版本是硬编码的,而这些版本已在此文件的上文中定义为变量。这可能导致不一致和维护困难。为了提高可维护性,建议使用模板变量来引用这些版本,类似于 builtin/core/roles/defaults/vars/v1.34.yaml 文件中的做法。

    - docker.io/calico/apiserver:{{ .cni.calico_version }}
    - docker.io/calico/cni:{{ .cni.calico_version }}
    - docker.io/calico/ctl:{{ .cni.calico_version }}
    - docker.io/calico/csi:{{ .cni.calico_version }}
    - docker.io/calico/kube-controllers:{{ .cni.calico_version }}
    - docker.io/calico/node-driver-registrar:{{ .cni.calico_version }}
    - docker.io/calico/node:{{ .cni.calico_version }}
    - docker.io/calico/pod2daemon-flexvol:{{ .cni.calico_version }}
    - docker.io/calico/typha:{{ .cni.calico_version }}
    - docker.io/kubesphere/coredns:{{ .dns.dns_image.tag }}
    - docker.io/kubesphere/k8s-dns-node-cache:{{ .dns.dns_cache_image.tag }}
    - docker.io/kubesphere/kube-apiserver:{{ .kube_version }}
    - docker.io/kubesphere/kube-controller-manager:{{ .kube_version }}
    - docker.io/kubesphere/kube-proxy:{{ .kube_version }}
    - docker.io/kubesphere/kube-scheduler:{{ .kube_version }}
    - docker.io/kubesphere/pause:{{ .cri.sandbox_image.tag }}
    - docker.io/openebs/linux-utils:{{ .storage_class.local.linux_utils_image.tag }}
    - docker.io/openebs/provisioner-localpv:{{ .storage_class.local.provisioner_image.tag }}
    - quay.io/tigera/operator:v1.34.5
    - docker.io/library/haproxy:{{ .kubernetes.control_plane_endpoint.haproxy.image.tag }}
    - docker.io/plndr/kube-vip:{{ .kubernetes.control_plane_endpoint.kube_vip.image.tag }}

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ cluster_require:
- '"centos"'
- kylin
- '"kylin"'
- rocky
- '"rocky"'
# Required network plugins
require_network_plugin: ['calico', 'flannel', 'cilium', 'hybridnet', 'kube-ovn']
# Minimum supported Kubernetes version
Expand Down
104 changes: 104 additions & 0 deletions builtin/core/roles/defaults/vars/v1.34.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
kubernetes:
# helm binary
helm_version: v3.18.5
control_plane_endpoint:
kube_vip:
image:
tag: v0.7.2
haproxy:
image:
tag: 2.9.6-alpine
etcd:
# etcd binary
etcd_version: v3.5.25

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

指定的 etcd 版本 v3.5.25 似乎不存在。etcd v3.5.x 系列的最新稳定版本是 v3.5.14。使用一个不存在的版本将导致安装过程中下载失败。请核实此版本号。

image_registry:
# ========== image registry ==========
# keepalived image tag. Used for load balancing when there are multiple image registry nodes.
keepalived_version: 2.0.20
# ========== image registry: harbor ==========
# harbor image tag
harbor_version: v2.10.2
# docker-compose binary
dockercompose_version: v2.20.3
# ========== image registry: docker-registry ==========
# docker-registry image tag
docker_registry_version: 2.8.3
cri:
# support: containerd,docker
container_manager: containerd
sandbox_image:
tag: "3.9"
# ========== cri ==========
# crictl binary
crictl_version: v1.33.0

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

指定的 crictl 版本 v1.33.0 似乎不存在。cri-tools 的最新发布版本是 v1.30.0。使用一个不存在的版本将导致下载失败。请检查该版本号。

# ========== cri: docker ==========
# docker binary
docker_version: 24.0.7
# cridockerd. Required when kube_version is greater than 1.24
cridockerd_version: v0.3.1
# ========== cri: containerd ==========
# containerd binary
containerd_version: v1.7.6
# runc binary
runc_version: v1.1.7
# skip tls verify when pulling images
skip_tls_verify: false
cni:
type: calico
ipv6_support: false
multus:
image:
tag: v4.3.0
# ========== cni ==========
# cni_plugins binary (optional)
# cni_plugins_version: v1.2.0
# ========== cni: calico ==========
# calicoctl binary
calico_version: v3.28.2
# ========== cni: cilium ==========
# cilium helm
cilium_version: 1.18.3
# ========== cni: kubeovn ==========
# kubeovn helm
kubeovn_version: 1.13.0
# ========== cni: hybridnet ==========
# hybridnet helm
hybridnet_version: 0.6.8
storage_class:
# ========== storageclass ==========
# ========== storageclass: local ==========
local:
provisioner_image:
tag: 4.2.0
linux_utils_image:
tag: 4.2.0
# ========== storageclass: nfs ==========
# nfs provisioner helm version
nfs_provisioner_version: 4.3.0
dns:
dns_image:
tag: v1.12.1
dns_cache_image:
tag: 1.24.0
image_manifests:
- docker.io/calico/apiserver:{{ .cni.calico_version }}
- docker.io/calico/cni:{{ .cni.calico_version }}
- docker.io/calico/ctl:{{ .cni.calico_version }}
- docker.io/calico/csi:{{ .cni.calico_version }}
- docker.io/calico/kube-controllers:{{ .cni.calico_version }}
- docker.io/calico/node-driver-registrar:{{ .cni.calico_version }}
- docker.io/calico/node:{{ .cni.calico_version }}
- docker.io/calico/pod2daemon-flexvol:{{ .cni.calico_version }}
- docker.io/calico/typha:{{ .cni.calico_version }}
- docker.io/kubesphere/coredns:{{ .dns.dns_image.tag }}
- docker.io/kubesphere/k8s-dns-node-cache:{{ .dns.dns_cache_image.tag }}
- docker.io/kubesphere/kube-apiserver:{{ .kubernetes.kube_version }}
- docker.io/kubesphere/kube-controller-manager:{{ .kubernetes.kube_version }}
- docker.io/kubesphere/kube-proxy:{{ .kubernetes.kube_version }}
- docker.io/kubesphere/kube-scheduler:{{ .kubernetes.kube_version }}
- docker.io/kubesphere/pause:{{ .cri.sandbox_image.tag }}
- docker.io/openebs/linux-utils:{{ .storage_class.local.linux_utils_image.tag }}
- docker.io/openebs/provisioner-localpv:{{ .storage_class.local.provisioner_image.tag }}
- quay.io/tigera/operator:v1.34.5
- docker.io/library/haproxy:{{ .kubernetes.control_plane_endpoint.haproxy.image.tag }}
- docker.io/plndr/kube-vip:{{ .kubernetes.control_plane_endpoint.kube_vip.image.tag }}