modify the scp yaml field (#2261)

Signed-off-by: zhu jing yang <3161362058@qq.com>
This commit is contained in:
zhujingyang
2022-12-16 15:58:55 +08:00
committed by GitHub
parent 38f378f89d
commit 6e58ab9f76
2 changed files with 11 additions and 8 deletions
@@ -48,16 +48,19 @@ spec:
image: "ami-0d66b970b9f16f1f5"
disks:
- capacity: ${infraForm.masterDisk}
type: ${infraForm.masterDiskType}
name: "/dev/sda2"
volumeType: ${infraForm.masterDiskType}
# allowed value is root|data
type: "root"
- roles: [ node ]
count: ${infraForm.nodeCount}
flavor: ${infraForm.nodeType}
image: "ami-0d66b970b9f16f1f5"
disks:
- capacity: ${infraForm.nodeDisk}
type: ${infraForm.nodeDiskType}
name: "/dev/sda2"
volumeType: ${infraForm.nodeDiskType}
# allowed value is root|data
type: "root"
---
apiVersion: cluster.sealos.io/v1
kind: Cluster
+4 -4
View File
@@ -20,16 +20,16 @@ spec:
image: "ami-0d66b970b9f16f1f5"
disks:
- capacity: {{.masterDisk}}
type: {{.masterDiskType}}
name: "/dev/sda2"
volumeType: {{.masterDiskType}}
type: "root"
- roles: [ node ]
count: {{ .nodeCount }}
flavor: {{ .nodeType }}
image: "ami-0d66b970b9f16f1f5"
disks:
- capacity: {{.nodeDisk}}
type: {{.nodeDiskType}}
name: "/dev/sda2"
volumeType: {{.nodeDiskType}}
type: "root"
`;
const clusterMeta: CRDMeta = {