应用平台 APPSTAGE-TF模板包:CCE资源RFS模板文件

时间:2024-10-21 10:40:12

CCE资源 RFS 模板文件

{
	"terraform": {
		"required_providers": {
			"huaweicloud": {
				"source": "huawei.com/provider/huaweicloud",
				"version": "1.56.0"
			}
		}
	},
	"provider": {
		"huaweicloud": {
			"auth_url": "https://iam.cn-north-4.myhuaweicloud.com/v3",
			"insecure": true,
			"region": "cn-north-4"
		}
	},
	"resource": {
		"huaweicloud_cce_cluster": {
			"cce-cluster-yfclf": {
				"vpc_id": "18b117f8-****-****-****-6d022db472a1",
				"name": "cce-cluster-rfs-001",
				"cluster_version": "v1.27",
				"charging_mode": "postPaid",
				"flavor_id": "cce.s2.small",
				"container_network_type": "vpc-router",
				"enterprise_project_id": "2191bb05-****-****-****-96f098494b8d",
				"subnet_id": "bef6af2f-****-****-****-9e78ef03eb6a"
			}
		},
		"huaweicloud_cce_node": {
			"cce-node-pmqnn": {
				"name": "cce-node-rfs-001",
				"charging_mode": "postPaid",
				"flavor_id": "c7.large.2",
				"os": "Huawei Cloud EulerOS 2.0",
				"runtime": "containerd",
				"root_volume": {
					"size": 50,
					"volumetype": "SAS"
				},
				"password": "${var.CCE-Node-Password-u9fi}",
				"cluster_id": "d6eb9020-****-****-****-0255ac1000ac",
				"availability_zone": "cn-north-4c",
				"data_volumes": [{
					"volumetype": "SAS",
					"size": 100
				}],
				"storage": {
					"selectors": [{
						"name": "cceUse",
						"type": "evs",
						"match_label_count": 1,
						"match_label_size": 100,
						"match_label_volume_type": "SAS"
					}],
					"groups": [{
						"name": "vgpaas",
						"cce_managed": true,
						"selector_names": ["cceUse"],
						"virtual_spaces": [{
							"name": "runtime",
							"size": "90%",
							"runtime_lv_type": "linear"
						}, {
							"name": "kubernetes",
							"size": "10%",
							"lvm_lv_type": "linear"
						}]
					}]
				},
				"depends_on": ["huaweicloud_cce_cluster.cce-cluster-yfclf"],
				"subnet_id": "bef6af2f-****-****-****-9e78ef03eb6a"
			}
		}
	},
	"variable": {
		"CCE-Node-Password-u9fi": {
			"description": "Password for cce-node-pmqnn",
			"type": "string",
			"sensitive": true,
			"nullable": false,
			"default": ""
		}
	}
}
support.huaweicloud.com/devg-appstage/appstage_06_0100.html