Update 02-install-kubernetes-and-kubesphere.adoc

This commit is contained in:
pixiake 2024-11-07 16:57:28 +08:00 committed by GitHub
parent 4190553b13
commit da7b8dff0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,7 +189,7 @@ include::../../../_custom/installationAndUpgrade/installationAndUpgrade-oper-dow
----
将 <Kubernetes version> 替换为实际需要的版本,例如 **v1.27.4**。{ks_product_right}默认支持 Kubernetes v1.21~1.28。
将 <Kubernetes version> 替换为实际需要的版本,例如 **v1.28.12**。{ks_product_right}默认支持 Kubernetes v1.21~1.28。
命令执行完毕后将生成安装配置文件 **config-sample.yaml**。
@ -218,29 +218,28 @@ spec:
hosts:
- {name: controlplane1, address: 192.168.0.2, internalAddress: 192.168.0.2, port: 23, user: ubuntu, password: Testing123, arch: arm64} # arm64 节点注意添加参数 arch: arm64
- {name: controlplane2, address: 192.168.0.3, internalAddress: 192.168.0.3, user: ubuntu, privateKeyPath: "~/.ssh/id_rsa"}
- {name: worker1, address: 192.168.0.4, internalAddress: 192.168.0.4, user: ubuntu, password: Testing123}
- {name: worker2, address: 192.168.0.5, internalAddress: 192.168.0.5, user: ubuntu, password: Testing123}
- {name: registry, address: 192.168.0.6, internalAddress: 192.168.0.6, user: ubuntu, password: Testing123}
- {name: controlplane3, address: 192.168.0.4, internalAddress: 192.168.0.4, port: 23, user: ubuntu, password: Testing123, arch: arm64} # arm64 节点注意添加参数 arch: arm64
- {name: worker1, address: 192.168.0.5, internalAddress: 192.168.0.4, user: ubuntu, password: Testing123}
- {name: worker2, address: 192.168.0.6, internalAddress: 192.168.0.5, user: ubuntu, password: Testing123}
roleGroups:
etcd:
- controlplane1
- controlplane2
- controlplane3
control-plane:
- controlplane1
- controlplane2
- controlplane3
worker:
- worker1
- worker2
# 如需使用 kk 自动部署镜像仓库,请设置 registry建议镜像仓库与集群节点分离部署减少相互影响
registry:
- registry
controlPlaneEndpoint:
internalLoadbalancer: haproxy # 如需部署⾼可⽤集群,且⽆负载均衡器可⽤,可开启该参数,做集群内部负载均衡
domain: lb.kubesphere.local
address: ""
port: 6443
kubernetes:
version: v1.23.15
version: v1.28.12
clusterName: cluster.local
network:
plugin: calico
@ -249,16 +248,7 @@ spec:
## multus support. https://github.com/k8snetworkplumbingwg/multus-cni
enableMultusCNI: false
registry:
# 如需使用 kk 部署 harbor可将该参数设置为 harbor不设置该参数且需使用 kk 部署容器镜像仓库,将默认部署 docker registry。
# harbor 不支持 arm64arm64 环境部署时,可不配置该参数。
type: harbor
# 如使用 kk 部署的 harbor 或其他需要登录的仓库,需设置对应仓库的 auths如使用 kk 部署默认的 docker registry 仓库,则无需配置 auths 参数。
auths:
"dockerhub.kubekey.local":
username: admin # harbor 默认用户名
password: Harbor12345 # harbor 默认密码
plainHTTP: false  # 如果仓库使用 http请将该参数设置为 true
privateRegistry: "dockerhub.kubekey.local/kse"   # 设置集群部署时使用的私有仓库地址
privateRegistry: ""
registryMirrors: []
insecureRegistries: []
addons: []