kubesphere.md
... ...
@@ -15,6 +15,52 @@
15 15
16 16
- 创建集群
17 17
18
+
19
+ apiVersion: kubekey.kubesphere.io/v1alpha2
20
+kind: Cluster
21
+metadata:
22
+ name: sample
23
+spec:
24
+ hosts:
25
+ - {name: node1, address: 192.168.6.74, internalAddress: 192.168.6.74, user: root, password: "Redsun888@"}
26
+ - {name: node2, address: 192.168.6.57, internalAddress: 192.168.6.57, user: root, password: "Redsun888@"}
27
+ roleGroups:
28
+ etcd:
29
+ - node1
30
+ control-plane:
31
+ - node1
32
+ worker:
33
+ - node1
34
+ - node2
35
+ controlPlaneEndpoint:
36
+ ## Internal loadbalancer for apiservers
37
+ # internalLoadbalancer: haproxy
38
+
39
+ domain: lb.kubesphere.local
40
+ address: ""
41
+ port: 6443
42
+ kubernetes:
43
+ version: v1.23.17
44
+ clusterName: cluster.local
45
+ autoRenewCerts: true
46
+ containerManager: docker
47
+ etcd:
48
+ type: kubekey
49
+ network:
50
+ plugin: calico
51
+ kubePodsCIDR: 10.233.64.0/18
52
+ kubeServiceCIDR: 10.233.0.0/18
53
+ ## multus support. https://github.com/k8snetworkplumbingwg/multus-cni
54
+ multusCNI:
55
+ enabled: false
56
+ registry:
57
+ privateRegistry: ""
58
+ namespaceOverride: ""
59
+ registryMirrors: []
60
+ insecureRegistries: []
61
+ addons: []
62
+
18 63
```
19 64
./kk create config --with-kubernetes <Kubernetes version>
20
- ```
... ...
\ No newline at end of file
0
+ ```
1
+
... ...
\ No newline at end of file