- 已编辑
rayzhou2017 我换成v1.17.9 安装仍然有问题。
配置文件
`
apiVersion: kubekey.kubesphere.io/v1alpha1
kind: Cluster
metadata:
name: config-sample
spec:
hosts:
- {name: master-21, address: 10.10.10.21, internalAddress: 10.10.10.21, password: an@123@#!}
- {name: master-22, address: 10.10.10.22, internalAddress: 10.10.10.22, password: an@123@#!}
- {name: master-23, address: 10.10.10.23, internalAddress: 10.10.10.23, password: an@123@#!}
- {name: node-24, address: 10.10.10.24, internalAddress: 10.10.10.24, password: an@123@#!}
- {name: node-25, address: 10.10.10.25, internalAddress: 10.10.10.25, password: an@123@#!}
- {name: node-26, address: 10.10.10.26, internalAddress: 10.10.10.26, password: an@123@#!}
- {name: node-27, address: 10.10.10.27, internalAddress: 10.10.10.27, password: an@123@#!}
- {name: node-28, address: 10.10.10.28, internalAddress: 10.10.10.28, password: an@123@#!}
roleGroups:
etcd:
- master-21
- master-22
- master-23
master:
- master-21
- master-22
- master-23
worker:
- node-24
- node-25
- node-26
- node-27
- node-28
controlPlaneEndpoint:
domain: lb.kubesphere.local
# vip
address: "10.10.10.20"
port: "6443"
kubernetes:
version: v1.17.9
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 | CrossSubnet | Never] [Default: 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 | CrossSubnet | Never] [Default: 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
registry:
registryMirrors: []
insecureRegistries: []
addons: [] # add your persistent storage and LoadBalancer plugin configuration here if you have, see https://kubesphere.io/docs/installing-on-linux/introduction/storage-configuration