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