alicloud-acs-cluster
Manage ACS clusters
Use the bundled OpenAPI client for the ACS cluster lifecycle. Use $aliyun-vpc-manage first when the VPC and VSwitches do not exist, and use $alicloud-acs-agent-sandbox after the cluster is ready.
Workflow
-
Read references/cluster-lifecycle.md before creating or deleting a cluster.
-
Set
ALIBABACLOUD_ACCESS_KEY_ID,ALIBABACLOUD_ACCESS_KEY_SECRET, and optionallyALIBABACLOUD_SECURITY_TOKEN. SetALIBABACLOUD_REGION_ID=cn-hangzhoufor Hangzhou. -
Before creating the network, confirm that the Alibaba Cloud account has already authorized both CSI service roles:
AliyunCSManagedCsiPluginRolewithAliyunCSManagedCsiPluginRolePolicyAliyunCSManagedCsiProvisionerRolewithAliyunCSManagedCsiProvisionerRolePolicy
These are account-level, one-time authorizations. If the execution identity cannot call
ram:GetRole, have the Alibaba Cloud account owner or a RAM administrator complete the official authorization pages. Container Service permissions alone cannot create these roles. -
Install the official SDK:
python3 -m pip install "alibabacloud-cs20151215==7.0.4" "alibabacloud-tea-openapi"