创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
操作系统信息
例如:虚拟机/物理机,Centos7.5/Ubuntu18.04,4C/8G
Kubernetes版本信息
例如:v18.6。单节点还是多节点。
容器运行时
例如,使用 docker 20.10.8
KubeSphere版本信息
例如:v2.2.1/v3.3.0。离线安装全套安装。
问题是什么
报错日志是什么,最好有截图。
安装完成,提示安装完成,但是无法登陆kubesphare
Installation is complete.
Please check the result using the command:
kubectl get pod -A


安装过程只有一个拒绝
5:26:55 CST stdout: [master1]
W0629 15:26:55.751067 57091 version.go:102] could not fetch a Kubernetes version from the internet: unable to get URL “https://dl.k8s.io/release/stable-1.txt”: Get “https://dl.k8s.io/release/stable-1.txt”: dial tcp 34.107.204.206:443: connect: connection refused
配置文件:config-sample.yaml
apiVersion: kubekey.kubesphere.io/v1alpha2
kind: Cluster
metadata:
name: sample
spec:
hosts:
{name: master1, address: 10.222.60.68, internalAddress: 10.222.60.68, user: root, password: 3edc$RFV}
{name: master2, address: 10.222.60.69, internalAddress: 10.222.60.69, user: root, password: 3edc$RFV}
{name: master3, address: 10.222.60.70, internalAddress: 10.222.60.70, user: root, password: 3edc$RFV}
{name: node1, address: 10.222.60.71, internalAddress: 10.222.60.71, user: root, password: 3edc$RFV}
{name: node2, address: 10.222.60.72, internalAddress: 10.222.60.72, user: root, password: 3edc$RFV}
{name: node3, address: 10.222.60.73, internalAddress: 10.222.60.73, user: root, password: 3edc$RFV}
{name: re1, address: 10.222.60.76, internalAddress: 10.222.60.76, user: root, password: 3edc$RFV}
roleGroups:
etcd:
master1
master2
master3
control-plane:
master1
master2
master3
worker:
node1
node2
node3
如需使用 kk 自动部署镜像仓库,请设置该主机组 (建议仓库与集群分离部署,减少相互影响)
registry:
re1
controlPlaneEndpoint:
Internal loadbalancer for apiservers
internalLoadbalancer: haproxy
domain: lb.kubesphere.local
address: “10.222.60.67”
port: 6443
kubernetes:
version: v1.21.5
imageRepo: kubesphere
clusterName: cluster.local
masqueradeAll: false # masqueradeAll tells kube-proxy to SNAT everything if using the pure iptables proxy mode. [Default: false]
maxPods: 110 # maxPods is the number of pods that can run on this Kubelet. [Default: 110]
nodeCidrMaskSize: 24 # internal network node size allocation. This is the size allocated to each node on your network. [Default: 24]
proxyMode: ipvs # mode specifies which proxy mode to use. [Default: ipvs]
network:
plugin: calico
calico:
ipipMode: Always # IPIP Mode to use for the IPv4 POOL created at start up. If set to a value other than Never, vxlanMode should be set to “Never”. [Always | Cro Always]
vxlanMode: Never # VXLAN Mode to use for the IPv4 POOL created at start up. If set to a value other than Never, ipipMode should be set to “Never”. [Always | Cro Never]
vethMTU: 1440 # The maximum transmission unit (MTU) setting determines the largest packet size that can be transmitted through your network. [Default: 1440]
kubePodsCIDR: 10.233.64.0/18
kubeServiceCIDR: 10.233.0.0/18
multusCNI:
enabled: false
registry:
如需使用 kk 部署 harbor, 可将该参数设置为 harbor,不设置该参数且需使用 kk 创建容器镜像仓库,将默认使用docker registry。
type: harbor
如使用 kk 部署的 harbor 或其他需要登录的仓库,可设置对应仓库的auths,如使用 kk 创建的 docker registry 仓库,则无需配置该参数。
注意:如使用 kk 部署 harbor,该参数请于 harbor 启动后设置。
#auths:
“dockerhub.kubekey.local”:
username: admin
password: Harbor12345
设置集群部署时使用的私有仓库
privateRegistry: ""
namespaceOverride: ""
registryMirrors: []
insecureRegistries: []
addons: []