github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/docs/site/src/zh/reference/clusterfile.md (about) 1 # Clusterfile definition 2 3 Install to existing servers, the provider is `BAREMETAL`: 4 5 ```yaml 6 apiVersion: sealer.aliyun.com/v1alpha1 7 kind: Cluster 8 metadata: 9 name: my-cluster 10 spec: 11 image: registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.19.8 12 provider: BAREMETAL 13 ssh: # host ssh config 14 # ssh login password. If you use the key, you don't need to set the password 15 passwd: 16 # The absolute path of the ssh private key file, for example, /root/.ssh/id_rsa 17 pk: xxx 18 # ssh private key file password 19 pkPasswd: xxx 20 # ssh login user 21 user: root 22 network: 23 podCIDR: 100.64.0.0/10 24 svcCIDR: 10.96.0.0/22 25 certSANS: 26 - aliyun-inc.com 27 - 10.0.0.2 28 masters: 29 ipList: 30 - 172.20.125.1 31 - 172.20.126.2 32 - 172.20.126.3 33 nodes: 34 ipList: 35 - 172.20.126.7 36 - 172.20.126.8 37 - 172.20.126.9 38 ``` 39 40 Automatically apply ali cloud server for installation, the provider is `ALI_CLOUD`. Or using container for installation,the provider is `CONTAINER`: 41 42 ```yaml 43 apiVersion: sealer.aliyun.com/v1alpha1 44 kind: Cluster 45 metadata: 46 name: my-cluster 47 spec: 48 image: registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.19.8 # name of CloudImage 49 provider: ALI_CLOUD # OR CONTAINER 50 ssh: # custom host ssh config 51 passwd: xxx 52 pk: xxx 53 pkPasswd: xxx 54 user: root 55 network: 56 podCIDR: 100.64.0.0/10 57 svcCIDR: 10.96.0.0/22 58 certSANS: 59 - aliyun-inc.com 60 - 10.0.0.2 61 masters: # You can specify the number of servers, system disk, data disk, cpu and memory size 62 cpu: 4 63 memory: 8 64 count: 3 65 systemDisk: 100 66 dataDisks: 67 - 100 68 nodes: 69 cpu: 5 70 memory: 8 71 count: 3 72 systemDisk: 100 73 dataDisks: 74 - 100 75 status: {} 76 ```