github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/openebs/example/Clusterfile.yaml (about) 1 apiVersion: zlink.aliyun.com/v1alpha1 2 kind: Cluster 3 metadata: 4 creationTimestamp: null 5 name: my-cluster 6 spec: 7 certSANS: 8 - aliyun-inc.com 9 - 10.0.0.2 10 image: registry.cn-qingdao.aliyuncs.com/sealer-apps/openebs-jiva:2.11.0 11 masters: 12 count: "1" 13 cpu: "4" 14 dataDisks: 15 - "100" 16 memory: "4" 17 systemDisk: "100" 18 network: 19 podCIDR: 100.64.0.0/10 20 svcCIDR: 10.96.0.0/22 21 nodes: 22 count: "3" 23 cpu: "4" 24 dataDisks: 25 - "100" 26 memory: "4" 27 systemDisk: "100" 28 provider: CONTAINER 29 ssh: 30 passwd: Seadent123 31 pk: xxx 32 pkPasswd: xxx 33 user: root 34 --- 35 apiVersion: sealer.aliyun.com/v1alpha1 36 kind: Plugin 37 metadata: 38 name: SHELL 39 spec: 40 action: PostInstall 41 on: role=node 42 data: | 43 if type yum >/dev/null 2>&1;then 44 yum -y install iscsi-initiator-utils 45 systemctl enable iscsid 46 systemctl start iscsid 47 elif type apt-get >/dev/null 2>&1;then 48 apt-get update 49 apt-get -y install open-iscsi 50 systemctl enable iscsid 51 systemctl start iscsid 52 fi 53 ---